[FIX] Do not provide a secondary currency when posting entries from bank statment if the same than the company to respect the new constraints.

bzr revid: joel.grandguillaume@camptocamp.com-20121026113502-jsxdf5swqfizfcen
This commit is contained in:
Joël Grand-Guillaume 2012-10-26 13:35:02 +02:00
parent 9527a10ba5
commit 6ef3db0a86
1 changed files with 1 additions and 1 deletions

View 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,
}