From 01e7beaf1e65d26356c2dffac744a7d7de285593 Mon Sep 17 00:00:00 2001 From: Sergio Morillo Date: Mon, 15 Nov 2021 17:37:52 +0100 Subject: [PATCH] Do not require Operation Key as it is filled on post. --- invoice.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/invoice.py b/invoice.py index 4cf1c4c..48aded5 100644 --- a/invoice.py +++ b/invoice.py @@ -27,10 +27,7 @@ class Invoice(metaclass=PoolMeta): states={ 'required': Eval('state').in_(['posted', 'paid']) }, depends=['state']) - sii_operation_key = fields.Selection(OPERATION_KEY, 'SII Operation Key', - states={ - 'required': Eval('state').in_(['posted', 'paid']) - }, depends=['state']) + sii_operation_key = fields.Selection(OPERATION_KEY, 'SII Operation Key') sii_issued_key = fields.Selection(SEND_SPECIAL_REGIME_KEY, 'SII Issued Key', states={