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.
mra: 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..."
"And debit, credit, balance fields on account.
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.