From ac04c9dbfd8ca1630753a8a76454718864e3dc5b Mon Sep 17 00:00:00 2001 From: mafo-odoo Date: Thu, 7 Apr 2022 14:28:05 +0000 Subject: [PATCH] [FIX] account: remove nested html p tag in p tag for invoicing report Current behavior: The invoice payment term of the report is a p tag with another p tag inside like:

This is a payment term note

but because nested p tags are not supported in html de result in the browser is something like:

This is a payment term note

Similar behavior can be observe for the fiscal position note. Expected behavior: The code should respect html format rules and not have nested p tags. Solution: We replace the parent p tags by div tags, and we modify xml file that have xpath relying on this tag. opw-2804933 closes odoo/odoo#88660 Related: odoo/enterprise#26372 Signed-off-by: Nicolas Lempereur (nle) --- addons/account/views/report_invoice.xml | 8 ++++---- addons/l10n_ae/views/report_invoice_templates.xml | 2 +- addons/l10n_cl/views/report_invoice.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 3afdcaa0c3f..cdc1a892f8b 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -167,15 +167,15 @@

Please use the following communication for your payment :

-

+

-

+
-

+

-

+

Incoterm: -

diff --git a/addons/l10n_ae/views/report_invoice_templates.xml b/addons/l10n_ae/views/report_invoice_templates.xml index ca164c0c2d8..df0099e7478 100644 --- a/addons/l10n_ae/views/report_invoice_templates.xml +++ b/addons/l10n_ae/views/report_invoice_templates.xml @@ -1,7 +1,7 @@