90
86
return context.get('invoice_id', False)
89
'paid': fields.function(_check_paid, string='Paid', type='boolean', help="The Voucher has been totally paid."),
93
90
'invoice_id':fields.many2one('account.invoice', 'Invoice', readonly=True, states={'draft':[('readonly',False)]},
94
91
help="Contains link to invoice, e.g. when the voucher is created via the Invoice 'Payment' button."),
95
92
'stline_info': fields.function(_get_stline_info, method=True, string='Associated Bank Transaction', type='char', size=256, readonly=True),