[FIX] account : in bank statement form when i tried to import invoice from button import invoices
lp bug: https://launchpad.net/bugs/867461 fixed bzr revid: bde@tinyerp.com-20111012063800-p72utna4b9olsbeu
This commit is contained in:
parent
048cfa7804
commit
da939a215a
|
@ -1056,7 +1056,7 @@ class account_bank_statement_line(osv.osv):
|
|||
for obj in self.browse(cr, uid, ids, context=context):
|
||||
if obj.voucher_id:
|
||||
diff = abs(obj.amount) - obj.voucher_id.amount
|
||||
if not self.pool.get('res.currency').is_zero(cr, uid, obj.voucher_id.currency_id, diff):
|
||||
if not self.pool.get('res.currency').is_zero(cr, uid, obj.statement_id.currency, diff):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue