Skip to content
Snippets Groups Projects
Commit 55aea3e8 authored by Guillaume (guva)'s avatar Guillaume (guva)
Browse files

[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#133703

Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
parent 06b3550e
Branches
Tags
No related merge requests found
......@@ -29,7 +29,7 @@
</template>
<template id="l10n_ch_swissqr_template">
<div class="article">
<div class="article" t-att-data-oe-model="o._name" t-att-data-oe-id="o.id">
<t t-set="o" t-value="o.with_context(lang=lang)"/>
<t t-set="company" t-value="o.company_id"/>
<t t-set="formated_amount" t-value="'{:,.2f}'.format(o.amount_residual).replace(',','\xa0')"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment