Commit Graph

289 Commits (a85e0e686b41cb67a1a9fee2ba9546587369dada)

Author SHA1 Message Date
João Marques 987c315029 [FIX] account_financial_report: Refactor tests
Use core account test base, helping to ensure we have the correct accounting environment setup.
If any of the localization modules are loaded, this will make this tests be skipped, instead of simply failing

TT28423
2022-11-30 18:07:37 +01:00
João Marques 8b0302db63 [FIX] account_financial_report: Fix tests
On multi-company settings, we need to make sure we are searching and creating objects with the correct company associated.
Also take into account previously created account groups

 TT28423
2022-11-30 18:07:37 +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
Alex Cuellar 06af516f6f [IMP] account_financial_report: black, isort, prettier 2022-11-30 18:07:36 +01:00
Ignacio Buioli 8020659e4a Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (245 of 245 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/es_AR/
2022-11-30 18:07:36 +01:00
mreficent ec027f8c5f [UPD] Eficent -> ForgeFlow 2022-11-30 18:07:36 +01:00
Dorin Hongu d06645a6b8 Translated using Weblate (Romanian)
Currently translated at 79.2% (194 of 245 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/ro/
2022-11-30 18:07:36 +01:00
Dorin Hongu 53a5f45252 Translated using Weblate (Romanian)
Currently translated at 78.0% (191 of 245 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/ro/
2022-11-30 18:07:36 +01:00
Dorin Hongu 56e3d58996 Translated using Weblate (Romanian)
Currently translated at 75.5% (185 of 245 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/ro/
2022-11-30 18:07:36 +01:00
Joan Sisquella 26ae804b6a [FIX] General ledger XLSX: solved mistake in the info 2022-11-30 18:07:35 +01:00
Joan Sisquella cace7052c3 [IMP] domain widget performance fix 2022-11-30 18:07:35 +01:00
Joan Sisquella 9f5e01683f [ADD] domain field for additional filtering 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
Ignacio Buioli 9c56d9e6c0 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (242 of 242 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/es_AR/
2022-11-30 18:07:35 +01:00
Andrea 2126b5d530 [FIX] translation not loaded 2022-11-30 18:07:35 +01:00
Ignacio Buioli 1ba64ae54b Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (241 of 241 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/es_AR/
2022-11-30 18:07:34 +01:00
Stéphane Bidoul 2fc555c076 [FIX] duplicates in es.po 2022-11-30 18:07:34 +01:00
Ignacio Buioli 107fca8abb Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (229 of 229 strings)

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-account_financial_report/es_AR/
2022-11-30 18:07:34 +01:00
Ignacio Buioli 44b6f5ddad Added translation using Weblate (Spanish (Argentina)) 2022-11-30 18:07:34 +01:00
Joan Sisquella 9d2cd569cd [IMP] account_financial_report: general_ledger
* "hide account at 0" hides account/partner if inital cumul balance is 0 and there are not movements in the period
2022-11-30 18:07:34 +01:00
Joan Sisquella eef6653fba [FIX] account_financial_report:
Not showing journal items with amount residual equal to 0
2022-11-30 18:07:34 +01:00
Jordi Ballester Alomar f0abfb7cce [IMP] account_financial_report:
* fix speed issue in VAT report
* rename Cost Center to Analytic Account in General Ledger
2022-11-30 18:07:33 +01:00
Joan Sisquella 5e3e45bb56 [IMP] account_financial_report:
* filter by analytic_account
2022-11-30 18:07:33 +01:00
Joan Sisquella ad49b30099 [IMP] account_financial_report: Fix VAT Report and other improvements 2022-11-30 18:07:33 +01:00
Jordi Ballester Alomar d9568ca272 [IMP] account_financial_report: multiple fixes and improvements 2022-11-30 18:07:33 +01:00
Joan Sisquella 0f523bf92a [IMP] account_financial_report: open_items
* added option "show_partner_details"
2022-11-30 18:07:33 +01:00
Joan Sisquella 8f1c150c39 [IMP] account_financial_report: select accounts between two codes 2022-11-30 18:07:33 +01:00
Joan Sisquella 20dd57c240 [IMP] account_financial_report: open_items & aged_partner_balance
* Now account_ids is empty by default and required
* Domain is applied in the selection of the accounts
2022-11-30 18:07:32 +01:00
Hughes Damry 8e1d90bef9 FIX missing date in invoice
The second invoice created has no explicit so taking the current date could lead to failing tests because the invoice is out of search as the the setup sets date_from as time.strftime("%Y-%m-01") and date_to as time.strftime("%Y-%m-28"). So i choose the easy way by setting an explicit date for the invoice.
2022-11-30 18:07:32 +01:00
Tonow-c2c c6abc07be6 fixup! account_financial_report: Increase columns width in general ledger Before this commit, amounts such as "10'000.00 CHF" were exceeding their columns width. Label column could be reduced as it's printed correctly over two different lines. 2022-11-30 18:07:32 +01:00
Akim Juillerat 3af5d7da1d account_financial_report: Increase columns width in general ledger
Before this commit, amounts such as "10'000.00 CHF" were exceeding their
columns width. Label column could be reduced as it's printed correctly
over two different lines.
2022-11-30 18:07:32 +01:00
Travis Waelbroeck a2e4834424 [FIX] account_financial_report: open_items
* Missing import causes failure when running Open Items with Date At in the past
2022-11-30 18:07:32 +01:00
Ernesto Tejeda bd5bb09334 [FIX] account_financial_report: Fix error when generating reports
Some reports crash if account move line implicated are Sections lines or Notes lines in an invoice
2022-11-30 18:07:32 +01:00
Joan Sisquella d7b6935b34 [FIX] account_financial_report: general_ledger
* centralization is only calculated on accounts where 'centralized' is True
* Cumul. Balance of each move_line fixed
* Ordering move_lines by date
* Fix trial_balance xlsx when not show_partner_details
2022-11-30 18:07:32 +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
Bole c5856ef19d Added translation using Weblate (Croatian) 2022-11-30 18:07:30 +01:00
Martronic SA 4197728365 Translated using Weblate (French)
Currently translated at 84.5% (278 of 329 strings)

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
2022-11-30 18:07:30 +01:00
Pedro M. Baeza 2db6866341 [FIX] account_financial_report: Avoid slow vacuum due to ondelete=cascade
`report_journal_ledger` is auto-vacuumed as any transient model, but has some
ondelete="cascade" constraints that auto-remove subtables when a record is removed,
doing this operation very slow when selecting these sub-records.

Letting default ondelete="set null" would result in same performance bottleneck,
as the select on sub-table is performed the same for setting "null" value on them.

As a solution, and for avoiding a costly index operation, we delete by SQL sub-tables
rows in advance.

A bit of extra logic has been added for avoiding to remove that records if it's not
the turn of vacuum the parent table.
2022-11-30 18:07:30 +01:00
sbejaoui 8c39ebb983 [12.0][FIX] - Hide ending balance if general ledger is filtered by partner 2022-11-30 18:07:30 +01:00
yterrettaz 08744faf61 Translated using Weblate (French)
Currently translated at 23.1% (76 of 329 strings)

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
2022-11-30 18:07:30 +01:00
jcleonard2018 199d9d8d44 Translated using Weblate (French)
Currently translated at 23.1% (76 of 329 strings)

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
2022-11-30 18:07:30 +01:00
gaikaz 765d7f26f7 account_financial_report: fix Trial Balance line order 2022-11-30 18:07:30 +01:00
Timon Tschanz fc11d66969 Fix display of captions in pdf 2022-11-30 18:07:30 +01:00
Marcel Savegnago 6ad1d266c6 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (329 of 329 strings)

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/pt_BR/
2022-11-30 18:07:30 +01:00
jcleonard2018 02cd5e4fd4 Translated using Weblate (French)
Currently translated at 10.3% (34 of 329 strings)

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/fr/
2022-11-30 18:07:29 +01:00
Pedro M. Baeza 3eb2da3112 [FIX] account_financial_report: Don't fail with installed l10n
The number of computed account can be greater in certain databases with l10n modules.
2022-11-30 18:07:29 +01:00
Pedro S. Lopez a742aac6b9 [FIX] account_financial_report: Update to bootstrap 4 2022-11-30 18:07:29 +01:00
Eduardo Aparicio bbe1b9fa2b Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (329 of 329 strings)

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-account_financial_report/pt_BR/
2022-11-30 18:07:29 +01:00