account-financial-reporting/account_financial_report/models
Jairo Llopis 553b774dc8
[FIX] account_financial_report: endless installation
Installing the module in a DB with more than 50000 accounts and groups made the install stall.

It turns out this method's implementation produced almost endless recursion. it was also depending on some fields that never were used.

Now it depends on the parent path, so when one group is moved to another parent, its computed accounts are recomputed, and parents' too, recursively.

Now, the method is much more performant, and the module gets installed in the same DB in 30s.

@moduon MT-1900

Co-authored-by: Eduardo De Miguel <edu@moduon.team>
2023-02-09 13:24:02 +00:00
..
__init__.py [MIG] account_financial_report: Migration to 14.0 2022-11-30 18:07:36 +01:00
account.py [MIG] account_financial_report: Migration to 15.0 2022-11-30 18:07:42 +01:00
account_group.py [FIX] account_financial_report: endless installation 2023-02-09 13:24:02 +00:00
account_move_line.py [MIG] account_financial_report: Migration to 16.0 2022-12-24 10:49:56 +01:00
ir_actions_report.py [MIG] account_financial_report: Migration to 16.0 2022-12-24 10:49:56 +01:00