Skip to content
Snippets Groups Projects
Commit 0152983a 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#88174

X-original-commit: 76e6c808
Signed-off-by: default avatarLaurent Smet <las@odoo.com>
Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
parent 86fe230b
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@
</div>
<div class="swissqr_text content">
<span t-field="o.partner_bank_id.acc_number"/><br/>
<span t-field="o.company_id.name"/><br/>
<span t-esc="o.partner_bank_id.acc_holder_name or o.company_id.name"/><br/>
<span t-field="o.company_id.street"/><br/>
<span t-field="o.company_id.country_id.code"/>
<span t-field="o.company_id.zip"/>
......@@ -152,7 +152,7 @@
</div>
<div class="swissqr_text content">
<span t-field="o.partner_bank_id.acc_number"/><br/>
<span t-field="o.company_id.name"/><br/>
<span t-esc="o.partner_bank_id.acc_holder_name or o.company_id.name"/><br/>
<span t-field="o.company_id.street"/><br/>
<span t-field="o.company_id.country_id.code"/>
<span 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