From 9505abe97b309d4dd27401871ff26dca1a56970e Mon Sep 17 00:00:00 2001 From: "Guillaume (guva)" Date: Thu, 31 Aug 2023 08:05:03 +0200 Subject: [PATCH] [FIX] l10n_ch: qr bill report with attachment When having an attachment to the qr-bill report, an error is raised when printing the report: "the report's template does not contains the attributes 'data-oe-model' and 'data-oe-id' on the div with 'article' classname." Steps: - With a Swiss company - Activate QR code on customer invoices - Go to Settings>Technical>Reports and select QR-bill - In Advanced Properties tab, set an attachment - Create an invoice for a swiss customer, confirm and print the QR-bill -> Error We this commit, we simply add oe-data-model and oe-data-id to the div with the article class in the template, as indicated in the error message. opw-3480179 closes odoo/odoo#134337 X-original-commit: 55aea3e851c61e1ad138937c1d40372f7ba7cf26 Signed-off-by: Laurent Smet (las) Signed-off-by: Guillaume Vanleynseele (guva) --- addons/l10n_ch/report/swissqr_report.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_ch/report/swissqr_report.xml b/addons/l10n_ch/report/swissqr_report.xml index d378d7a9d81..ce23aa9c0ad 100644 --- a/addons/l10n_ch/report/swissqr_report.xml +++ b/addons/l10n_ch/report/swissqr_report.xml @@ -41,7 +41,7 @@