From 16fe869244aa95816488750a2b3b08821dba8ac0 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 6 Jun 2020 23:37:16 +0200 Subject: [PATCH] Fix state condition on invoice view --- account_payment_order/views/account_invoice_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_payment_order/views/account_invoice_view.xml b/account_payment_order/views/account_invoice_view.xml index 8a32eff9d..5b162ebb9 100644 --- a/account_payment_order/views/account_invoice_view.xml +++ b/account_payment_order/views/account_invoice_view.xml @@ -23,7 +23,7 @@ groups="account_payment_order.group_account_payment" attrs="{'invisible': ['|', '|', ('payment_order_ok', '=', False), - ('state', '!=', 'open'), + ('state', '!=', 'posted'), ('type', 'not in', ('out_invoice', 'out_refund')) ]}" /> @@ -34,7 +34,7 @@ groups="account_payment_order.group_account_payment" attrs="{'invisible': ['|', '|', ('payment_order_ok', '=', False), - ('state', '!=', 'open'), + ('state', '!=', 'posted'), ('type', 'not in', ('in_invoice', 'in_refund')) ]}" />