[FIX] Can pay Sales Receipt multiple times

bzr revid: ara@tinyerp.com-20110705095326-3s5g0oi74mfgfl1s
This commit is contained in:
ARA (OpenERP) 2011-07-05 15:23:26 +05:30
parent 3ccbaf9367
commit bd94e9b446
1 changed files with 1 additions and 0 deletions

View File

@ -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,