Comment 15 for bug 582988

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote : Re: [6.0] Analytic account lines not being created for account moves

mra:
"And debit, credit, balance fields on account.analytic.account are function field with store=True but it does not work properly. For e.g if you create invoice with analytic account X, Its debit,credit,balance entry does not updated (I mean its functions _balance_calc, _debit_calc, ... not called) ....So we can use store={} feature in analytic account fields..."

That looks similar to bug 600547 ! (Invoice totals [store={}] not getting updated when the invoice lines are created/moved directly). I'm starting to think that we have a problem with stores and one2many/many2one relations: changes in the many2one side (analytic line / invoice line) might not trigger the 'store' on the one2many side (analytic account / invoice) :(

Somebody should review this behavior as it may cause big headaches.