Comment 6 for bug 997316

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi Ronald,

if it's a different backtrace then it is probably a different bug, especially because this bug is fixed released and apparently tested and accepted by the original bug poster.

With regard to your issue, these move lines that set currency_id regardless of whether it is equal to the company currency are created in account/account_bank_statement.py. I wonder if this should be allowed at all. It is assumed that the move line's amount_currency is filled whenever currency_id is in other places as well, for instance here:
http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/view/head:/account/account_move_line.py#L134

So the real bug may be that currency_id is set to company_currency, and amount_currency is not set.