[FIX] Do not provide a secondary currency when posting entries from bank statment...
authorJoël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
Fri, 26 Oct 2012 11:35:02 +0000 (13:35 +0200)
committerJoël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
Fri, 26 Oct 2012 11:35:02 +0000 (13:35 +0200)
bzr revid: joel.grandguillaume@camptocamp.com-20121026113502-jsxdf5swqfizfcen

addons/account/account_bank_statement.py

index 4808245..68d1f32 100644 (file)
@@ -311,7 +311,7 @@ class account_bank_statement(osv.osv):
             'statement_id': st_line.statement_id.id,
             'journal_id': st_line.statement_id.journal_id.id,
             'period_id': st_line.statement_id.period_id.id,
-            'currency_id': cur_id,
+            'currency_id': amount_currency and cur_id,
             'amount_currency': amount_currency,
             'analytic_account_id': analytic_id,
         }