[FIX] Voucher: _check_paid method small fix

bzr revid: mra@mra-laptop-20110610100728-2yru0o3t1bs8yae6
This commit is contained in:
Mustufa Rangwala 2011-06-10 15:37:28 +05:30
parent c73335eed4
commit af31c9a011
1 changed files with 1 additions and 1 deletions

View File

@ -144,8 +144,8 @@ class account_voucher(osv.osv):
def _check_paid(self, cr, uid, ids, name, args, context=None):
res = {}
ok = False
for voucher in self.browse(cr, uid, ids, context=context):
ok = False
for line in voucher.move_ids:
if (line.account_id.type, 'in', ('receivable', 'payable')) and line.reconcile_id:
ok = True