Daily updates from Odoo
Friday, February 23, 2024
1 change · master
Resolved issues and error corrections
Localized invoice report customizations are now isolated so they do not interfere with each other when multiple country-specific modules are installed. This reduces the risk of invoice layout errors and improves reliability for businesses operating across localizations.
Original PR description
A lot of localisations inherit the account.report_invoice_document template to include custom changes, but without primary="True". The issue is that the template is updated for every localisation. This can lead to errors when, for instance, multiple localisation xpath replace the same div, add a t-else (resulting in multiple ones in a row),... This commit makes all the inherited templates primary="True" and calls them by inheriting the report_invoice(_with_payments) templates instead. This is still a temporary solution, needed because of an issue with the editing in Studio. see odoo/odoo#106776 task id=3100225