Commit Graph

19 Commits (a85e0e686b41cb67a1a9fee2ba9546587369dada)

Author SHA1 Message Date
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
David Ramia 36c5b3580c [MIG] account_financial_report: Migration to 16.0 2022-12-24 10:49:56 +01:00
Ethan Hildick eb574c8cf4 [14.0][FIX] account_financial_report: Run compute in multi 2022-12-09 14:31:39 +01:00
Jasmin Solanki e8942d398c [MIG] account_financial_report: Migration to 15.0 2022-11-30 18:07:42 +01:00
Jasmin Solanki e29b013cc6 [IMP] account_financial_report: black, isort, prettier 2022-11-30 18:07:42 +01:00
Iryna Vyshnevska 0e3da906a6 [FIX] account_financial_report: use proper methods to set context 2022-11-30 18:07:42 +01:00
João Marques 281c80cca9 [MIG] account_financial_report: Migration to 14.0
Since v14, Odoo defines the `__slots__` attribute in the `BaseModel` class (ea3e39506a)
This makes it impossible to add attributes to an instance like it was done here in v13.
The use of the `report_data` dictionary passed between method is the closes and simples solution to this "issue".

TT26415

Co-authored-by: Alex Cuellar <acuellar@grupoyacck.com>
2022-11-30 18:07:36 +01:00
Joan Sisquella cace7052c3 [IMP] domain widget performance fix 2022-11-30 18:07:35 +01:00
Pedro M. Baeza 6d8bcb0311 [FIX+IMP] account_financial_report: data can be None + no context mangling
Depending on the calling method, data can be something different from a dictionary
(like `None` if no keyword argument is provided), so this will crash. Example:
mis_builder is crashing in its tests.

We prevent that checking for a falsy value before trying to access the dictionary.

We also avoid context mangling for non AFR reports (those without the key
`account_financial_report_lang` in the dictionary), not callign to `with_context`
in that case.
2022-11-30 18:07:35 +01:00
Andrea 2126b5d530 [FIX] translation not loaded 2022-11-30 18:07:35 +01:00
Ernesto Tejeda 30ccdf5bb3 [MIG] account_financial_report: Migration to 13.0 2022-11-30 18:07:31 +01:00
Ernesto Tejeda 65d8966a37 [IMP] account_financial_report: black, isort 2022-11-30 18:07:31 +01:00
Joan Sisquella 6901a08879 [12.0] account_financial_report: refactor 2022-11-30 18:07:30 +01:00
Quentin Groulard 075c355fe0 [FIX] Few fixes to solve warnings:
- _description in account_financial_report_abstract
- _description in vat.report.wizard
- Two fields using same label 'Accounts' in account.group
- Two fields using same label 'Account' in report_journal_ledger_move_line
- Two fields using same label 'Partner' in report_journal_ledger_move_line
- Two fields using same label 'Accounts' in report_trial_balance_account
- Two fields using same label 'Tax' in report_vat_report_taxtag
- Two fields using same label 'Tax' in report_vat_report_tax
- Two fields using same label 'Filter accounts' in general.ledger.report.wizard
2022-11-30 18:07:28 +01:00
Iryna Vushnevska a0df108788 [IMP] account_financial_reports: Several improvements:
* Move to less files to compile variables
* hide contacts on partner
* Add reports to res partner actions
* initialize wizard from context
* initialize wizard by current fiscal year
2022-11-30 18:07:27 +01:00
Jordi Ballester Alomar 5396ef00d1 [account_financial_report]
- minor usability fixes for multicompany
- improve performance of general ledger using a new index
2022-11-30 18:07:26 +01:00
Pedro M. Baeza d3c1d85e85 [FIX] account_financial_report: 2 things:
* Fix account group level computation

  Depends was not correct for recomputing when needed + better algorithm

* Make hide details on 0 work properly

  * Passing values to general ledger was stripping some correct records
  * Computed field for hiding lines doesn't have proper dependencies nor is not
    taking into account float currency accuracy
2022-11-30 18:07:25 +01:00
Fekete Mihai 4f42efc581 Update links in report, add account group file, update trial balance with hierarchy.
Update indentation, remove empty lines from header.

Update test.

Update pylint.

Remove company_id on computing accounts, since account.group is not a company based model, filtering accounts is done on trial balance report.

Update account variables.

Improve condition in padding on accounts.

Add option to print hierarchy based on defined accounts/computed accounts.

Add VAT report, hierarchy from tax tags ans taxes.

Fix pylint, xlsx report generation header.

Update code to select code_prefix or name.

Update code to select code_prefix or name.

Update code to select code_prefix or name.

Fix domain in base amounts in vat report.

Change trial balance code_prefix or name.

Update trail balance, add tests for vat report.

Update pylint, amounts as monetary, many2one option on generation excels.

Update pulint.

Add VAT Report in readme.

Add VAT Report in readme.

Update array_agg.

Update array_agg.

Update array_agg.

Add option in VAT Report to be printed on Tax Tags - Tax Groups.

Add widget to hierarchy_on on trial balance.
2022-11-30 18:07:21 +01:00
Jordi Ballester a595897d20 [MIG] account_financial_report_qweb: Migration to 11.0
* dynamize general ledger
2022-11-30 18:07:20 +01:00