From da939a215aca097e534bb76d3a3e5b7e0aa4c6ef Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala <> Date: Wed, 12 Oct 2011 12:08:00 +0530 Subject: [PATCH] [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 --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 005e5d9ab46..f609192ade8 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -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