Commit Graph

13 Commits (06496934b14254e702959f25d8b7d24d6ae28824)

Author SHA1 Message Date
João Marques 037ac4f515 [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>
2021-01-25 15:43:26 +00:00
Joan Sisquella 7b0aaa9ffc [IMP] domain widget performance fix 2021-01-15 11:26:18 +00:00
Pedro M. Baeza c36817262d [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.
2021-01-15 11:26:18 +00:00
Andrea d01e033c20 [FIX] translation not loaded 2021-01-15 11:26:18 +00:00
Ernesto Tejeda e3ed54ac37 [MIG] account_financial_report: Migration to 13.0 2021-01-15 11:26:18 +00:00
Ernesto Tejeda fabb420365 [IMP] account_financial_report: black, isort 2021-01-15 11:26:18 +00:00
Joan Sisquella d44f64a1c9 [12.0] account_financial_report: refactor 2021-01-15 11:26:18 +00:00
Quentin Groulard ecabbbb6e6 [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
2021-01-15 11:26:17 +00:00
Iryna Vushnevska ece71bba7b [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
2021-01-15 11:26:17 +00:00
Jordi Ballester Alomar 50bad1902a [account_financial_report]
- minor usability fixes for multicompany
- improve performance of general ledger using a new index
2021-01-15 11:26:17 +00:00
Pedro M. Baeza 68c5261ab0 [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
2021-01-15 11:26:17 +00:00
Fekete Mihai f4ce705ab2 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.
2021-01-15 11:26:17 +00:00
Jordi Ballester 05e24f9ef4 [MIG] account_financial_report_qweb: Migration to 11.0
* dynamize general ledger
2021-01-15 11:26:16 +00:00