Comment 1 for bug 922621

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : Re: [trunk] bad computation for multicurrency move lines

Hi,

The 'foreign_balance' function field represents the balance in the secondary currency for GL accounts which *do have* a secondary currency set (currency_id != False), and thus have all their journal items expressed in that same secondary currency.
It makes no sense for GL accounts which have no secondary currency, and thus may mix different currencies.

We should improve the __compute function to make sure the foreign_balance is always computed as 0 for GL accounts that don't have a secondary currency.
This may confuse other people tinkering with the low-level accounting database structure, so let's not consider this a Wishlist.

Thanks for reporting.