From bd94e9b446139dbdbbe0014a044eaed8f4d5d9cb Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Tue, 5 Jul 2011 15:23:26 +0530 Subject: [PATCH] [FIX] Can pay Sales Receipt multiple times bzr revid: ara@tinyerp.com-20110705095326-3s5g0oi74mfgfl1s --- addons/account_voucher/account_voucher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 3cc859f1d04..72f221eac45 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -237,6 +237,7 @@ class account_voucher(osv.osv): 'comment': fields.char('Write-Off Comment', size=64, required=True, readonly=True, states={'draft': [('readonly', False)]}), 'analytic_id': fields.many2one('account.analytic.account','Write-Off Analytic Account', readonly=True, states={'draft': [('readonly', False)]}), 'writeoff_amount': fields.function(_get_writeoff_amount, string='Write-Off Amount', type='float', readonly=True), + 'paid': fields.function(_check_paid, method=True, string='Paid', type='boolean', help="The Voucher has been totally paid."), } _defaults = { 'period_id': _get_period,