diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 3da8436a1da..5b06a40acb1 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -482,7 +482,7 @@ account.invoice form tree,form,calendar,graph - [('state','!=','draft'),('reconciled','=',False),('type','=','out_invoice')] + [('state','not in',['draft','cancel']),('reconciled','=',False),('type','=','out_invoice')] {'type':'out_invoice'} @@ -526,7 +526,7 @@ account.invoice form tree,form,calendar,graph - [('state','!=','draft'),('reconciled','=',False),('type','=','in_invoice')] + [('state','not in',['draft','cancel']),('reconciled','=',False),('type','=','in_invoice')] {'type':'in_invoice'} @@ -570,7 +570,7 @@ account.invoice form tree,form,calendar,graph - [('state','!=','draft'),('reconciled','=',False),('type','=','out_refund')] + [('state','not in',['draft','cancel']),('reconciled','=',False),('type','=','out_refund')] {'type':'out_refund'} @@ -614,7 +614,7 @@ account.invoice form tree,form,calendar,graph - [('state','!=','draft'),('reconciled','=',False),('type','=','in_refund')] + [('state','not in',['draft','cancel']),('reconciled','=',False),('type','=','in_refund')] {'type':'in_refund'}