From 267a006d5cd73ce1fd1865b291828019cb4d0db4 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Mon, 27 Oct 2025 15:41:59 +0100 Subject: [PATCH] account_invoice_export_ubl: show "Send Peppol" button on self-billing --- account_invoice_export_ubl/views/account_invoice.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_export_ubl/views/account_invoice.xml b/account_invoice_export_ubl/views/account_invoice.xml index 8179b43..afbbcb0 100644 --- a/account_invoice_export_ubl/views/account_invoice.xml +++ b/account_invoice_export_ubl/views/account_invoice.xml @@ -16,7 +16,7 @@ name="peppol_export_invoice" string="Send Peppol" type="object" - attrs="{'invisible':['|', '|', '|', ('transmit_method_code', '!=', 'peppol'), ('state', '!=', 'posted'), ('invoice_exported', '=', True), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}" + attrs="{'invisible': ['|', '|', '|', ('transmit_method_code', '!=', 'peppol'), ('invoice_exported', '=', True), ('state', '!=', 'posted'), '&', ('move_type', 'not in', ['out_invoice', 'out_refund']), '|', ('move_type', 'not in', ['in_invoice', 'in_refund']), ('self_billing', '!=', True)]}" class="oe_highlight" />