From 30f589f74876c71dafff8cc4076659e5f7c2b399 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Thu, 20 Aug 2020 09:55:24 +0000 Subject: [PATCH] [FIX] l10n_ch: Print QR-bill button should be only on customer invoices opw-2320456 closes odoo/odoo#56679 X-original-commit: 66f8ebd9b2c34994b76475f55e6e28917d42ec53 Signed-off-by: agr-odoo --- addons/l10n_ch/views/account_invoice_view.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/l10n_ch/views/account_invoice_view.xml b/addons/l10n_ch/views/account_invoice_view.xml index 1c5a59284a8..428516b8932 100644 --- a/addons/l10n_ch/views/account_invoice_view.xml +++ b/addons/l10n_ch/views/account_invoice_view.xml @@ -46,6 +46,7 @@ type="object" attrs="{'invisible':['|', ('state', '!=', 'posted'), '|', ('l10n_ch_isr_sent', '=', True), + '|', ('type', 'not in', ('out_invoice', 'out_refund')), ('l10n_ch_currency_name', 'not in', ['EUR', 'CHF'])]}" groups="base.group_user" class="oe_highlight" @@ -56,6 +57,7 @@ type="object" attrs="{'invisible':['|', ('state', '!=', 'posted'), '|', ('l10n_ch_isr_sent', '=', False), + '|', ('type', 'not in', ('out_invoice', 'out_refund')), ('l10n_ch_currency_name', 'not in', ['EUR', 'CHF'])]}" groups="base.group_user" />