-
-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0]account_analytic_parent. Debit, credit and balance computation is super slow. #198
Comments
Use |
Ok thanks, @mreficent can you point me to that change? I could not find it in contracts. |
Thanks @mreficent |
Cannot group_by non stored fields. And read group does not return the values that are not in the group_by. I'll go for a query instead. edit:I can read_group the analytic lines but that would be duplicating the core method |
@aheficent this has nothing to do with stored/non stored. Please use |
Do you mean to read_group in the analytic lines and not call super instead? |
Well, you limit the read_group in the domain to the |
When overriding the method that computes those fields here: https://github.com/OCA/account-analytic/blob/10.0/account_analytic_parent/models/account_analytic_account.py#L24 Odoo calls the same method for all the children and it gets extremely slow when the number of analytic accounts grow, specially with many children.
We can make those fields stored but then we have to make sure it is recomputed everytime its needed and it's complex.
Any ideas are welcome! 🤗
The text was updated successfully, but these errors were encountered: