Commit Graph

113 Commits

Author SHA1 Message Date
João Marques
12034178bb [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>
2024-11-29 15:38:40 +07:00
Alex Cuellar
e250c0583d [IMP] account_financial_report: black, isort, prettier 2024-11-29 15:38:40 +07:00
Ignacio Buioli
ed7ef8a475 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/
2024-11-29 15:38:40 +07:00
mreficent
dc3431b348 [UPD] Eficent -> ForgeFlow 2024-11-29 15:38:40 +07:00
Dorin Hongu
cdc98d4071 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/
2024-11-29 15:38:40 +07:00
Dorin Hongu
e7c1f4beb7 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/
2024-11-29 15:38:40 +07:00
Dorin Hongu
cf05ddd7ea 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/
2024-11-29 15:38:40 +07:00
Joan Sisquella
fda4a2a169 [FIX] General ledger XLSX: solved mistake in the info 2024-11-29 15:38:40 +07:00
Joan Sisquella
e8cdafc8d0 [IMP] domain widget performance fix 2024-11-29 15:38:40 +07:00
Joan Sisquella
fd18f5c312 [ADD] domain field for additional filtering 2024-11-29 15:38:40 +07:00
Pedro M. Baeza
cbacc1455c [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.
2024-11-29 15:38:40 +07:00
Ignacio Buioli
7562cfd47c 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/
2024-11-29 15:38:40 +07:00
Andrea
8cb94660e0 [FIX] translation not loaded 2024-11-29 15:38:40 +07:00
Ignacio Buioli
3a55e90a92 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/
2024-11-29 15:38:40 +07:00
Stéphane Bidoul
7603bdaac9 [FIX] duplicates in es.po 2024-11-29 15:38:40 +07:00
Ignacio Buioli
c4b71ec760 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/
2024-11-29 15:38:40 +07:00
Ignacio Buioli
2cce2d074e Added translation using Weblate (Spanish (Argentina)) 2024-11-29 15:38:40 +07:00
Joan Sisquella
a7113073fb [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
2024-11-29 15:38:40 +07:00
Joan Sisquella
67bc2beefd [FIX] account_financial_report:
Not showing journal items with amount residual equal to 0
2024-11-29 15:38:40 +07:00
Jordi Ballester Alomar
707b147c6c [IMP] account_financial_report:
* fix speed issue in VAT report
* rename Cost Center to Analytic Account in General Ledger
2024-11-29 15:38:40 +07:00
Joan Sisquella
74d5e67a76 [IMP] account_financial_report:
* filter by analytic_account
2024-11-29 15:38:40 +07:00
Joan Sisquella
6f32057364 [IMP] account_financial_report: Fix VAT Report and other improvements 2024-11-29 15:38:40 +07:00
Jordi Ballester Alomar
e4377eb3bb [IMP] account_financial_report: multiple fixes and improvements 2024-11-29 15:38:40 +07:00
Joan Sisquella
cbaabca8ae [IMP] account_financial_report: open_items
* added option "show_partner_details"
2024-11-29 15:38:40 +07:00
Joan Sisquella
177447155f [IMP] account_financial_report: select accounts between two codes 2024-11-29 15:38:40 +07:00
Joan Sisquella
7d96ea4f74 [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
2024-11-29 15:38:40 +07:00
Hughes Damry
88a00ef4cb 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.
2024-11-29 15:38:40 +07:00
Tonow-c2c
c00785cddd 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. 2024-11-29 15:38:40 +07:00
Akim Juillerat
7d9eb6e5f3 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.
2024-11-29 15:38:40 +07:00
Travis Waelbroeck
72c6843d9b [FIX] account_financial_report: open_items
* Missing import causes failure when running Open Items with Date At in the past
2024-11-29 15:38:40 +07:00
Ernesto Tejeda
db9f316980 [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
2024-11-29 15:38:40 +07:00
Joan Sisquella
e23bfa9487 [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
2024-11-29 15:38:40 +07:00
Ernesto Tejeda
712d4a898a [MIG] account_financial_report: Migration to 13.0 2024-11-29 15:38:40 +07:00
Ernesto Tejeda
40c874a112 [IMP] account_financial_report: black, isort 2024-11-29 15:38:40 +07:00
Joan Sisquella
1227d53d4f [12.0] account_financial_report: refactor 2024-11-29 15:38:40 +07:00
Bole
b26ee9ff05 Added translation using Weblate (Croatian) 2024-11-29 15:38:40 +07:00
Martronic SA
88fbfd79e1 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/
2024-11-29 15:38:40 +07:00
Pedro M. Baeza
1dbf6b19bd [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.
2024-11-29 15:38:40 +07:00
sbejaoui
091a3f31ad [12.0][FIX] - Hide ending balance if general ledger is filtered by partner 2024-11-29 15:38:40 +07:00
yterrettaz
79366c86cd 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/
2024-11-29 15:38:40 +07:00
jcleonard2018
291f8987c7 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/
2024-11-29 15:38:40 +07:00
gaikaz
24c2432154 account_financial_report: fix Trial Balance line order 2024-11-29 15:38:40 +07:00
Timon Tschanz
185940eb2b Fix display of captions in pdf 2024-11-29 15:38:40 +07:00
Marcel Savegnago
e5c1a1f7ba 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/
2024-11-29 15:38:40 +07:00
jcleonard2018
5481f68f21 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/
2024-11-29 15:38:40 +07:00
Pedro M. Baeza
58b801570c [FIX] account_financial_report: Don't fail with installed l10n
The number of computed account can be greater in certain databases with l10n modules.
2024-11-29 15:38:40 +07:00
Pedro S. Lopez
fb3f5cc3f4 [FIX] account_financial_report: Update to bootstrap 4 2024-11-29 15:38:40 +07:00
Eduardo Aparicio
903ef050c0 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/
2024-11-29 15:38:40 +07:00
Eduardo Aparicio
70906e18bd 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/
2024-11-29 15:38:40 +07:00
Eduardo Aparicio
4a8413442b Translated using Weblate (Portuguese (Brazil))
Currently translated at 43.2% (142 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/
2024-11-29 15:38:40 +07:00