Skip to content
Snippets Groups Projects
Commit 76e6c808 authored by oco-odoo's avatar oco-odoo
Browse files

[FIX] l10n_ch: use consistent name on QR bill when using acc_holder_name on bank account


When setting acc_holder_name on the bank account receiving the payment of a QR-bill, acc_holder_name was used instead of the company's name inside the QR-code, but not on the summary text displayed next to it. This fix replaces the company name there as well. The behavior is unchanged when acc_holder_name isn't set.

closes odoo/odoo#88149

Signed-off-by: default avatarLaurent Smet <las@odoo.com>
parent c5b9130c
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@
<div class="swissqr_text">
<span class="title">Account / Payable to</span><br/>
<span class="content" t-field="o.invoice_partner_bank_id.acc_number"/><br/>
<span class="content" t-field="o.company_id.name"/><br/>
<span class="content" t-esc="o.invoice_partner_bank_id.acc_holder_name or o.company_id.name"/><br/>
<span class="content" t-field="o.company_id.street"/><br/>
<span class="content" t-field="o.company_id.country_id.code"/>
<span class="content" t-field="o.company_id.zip"/>
......@@ -101,7 +101,7 @@
<div class="swissqr_text">
<span class="title">Account / Payable to</span><br/>
<span class="content" t-field="o.invoice_partner_bank_id.acc_number"/><br/>
<span class="content" t-field="o.company_id.name"/><br/>
<span class="content" t-esc="o.invoice_partner_bank_id.acc_holder_name or o.company_id.name"/><br/>
<span class="content" t-field="o.company_id.street"/><br/>
<span class="content" t-field="o.company_id.country_id.code"/>
<span class="content" t-field="o.company_id.zip"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment