Do not require Operation Key as it is filled on post.

This commit is contained in:
Sergio Morillo 2021-11-15 17:37:52 +01:00
parent 5e7b86e189
commit 01e7beaf1e

View file

@ -27,10 +27,7 @@ class Invoice(metaclass=PoolMeta):
states={ states={
'required': Eval('state').in_(['posted', 'paid']) 'required': Eval('state').in_(['posted', 'paid'])
}, depends=['state']) }, depends=['state'])
sii_operation_key = fields.Selection(OPERATION_KEY, 'SII Operation Key', sii_operation_key = fields.Selection(OPERATION_KEY, 'SII Operation Key')
states={
'required': Eval('state').in_(['posted', 'paid'])
}, depends=['state'])
sii_issued_key = fields.Selection(SEND_SPECIAL_REGIME_KEY, sii_issued_key = fields.Selection(SEND_SPECIAL_REGIME_KEY,
'SII Issued Key', 'SII Issued Key',
states={ states={