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" />