From e9dab419f39e43ad39a4eb7576aef86ca3761022 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Wed, 13 Dec 2023 13:57:44 +0100 Subject: [PATCH] Show shop field when invoice type is out #163889 --- invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoice.py b/invoice.py index 3f8a295..6dc7404 100644 --- a/invoice.py +++ b/invoice.py @@ -26,6 +26,7 @@ class Invoice(metaclass=PoolMeta): states={ 'readonly': ((Eval('state') != 'draft') | (Eval('lines', [0]) & Eval('currency'))), + 'invisible': (Eval('type') != 'out'), }, depends=['type', 'state', 'company'])