[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:
Mustufa Rangwala 2011-10-12 12:08:00 +05:30 committed by Bharat (OpenERP)
parent 048cfa7804
commit da939a215a
1 changed files with 1 additions and 1 deletions

View File

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