Comment 5 for bug 1011492

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello All,

The account dashboard 'e error comes from the addons side because the balance field is a function field without store and non-stored function fields should not be used in read_group.

Also I agree with Ajay, We can't do on server-side in read_group, as we cannot allow grouping on non-stored function fields.It would required computing the function field value for the whole database, which could have millions of records

Also on addons side we must not make the balance field stored, because it is a critical field that must always be correct, and making it stored would add a risk of having it become out of sync with the actual balance (many things can affect the balance, like structure of chart of account, move, move.lines, etc.)

I would like to assign this issue into addons team and please properly fix the chart definition for the financial part without making store="True'.

Thank you!