Eval company or -1 in context m2o fields

#163427
This commit is contained in:
Raimon Esteve 2023-11-16 07:27:21 +01:00
parent 08b9120692
commit 7701d72bec
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Invoice(metaclass=PoolMeta):
'readonly': (Eval('state') != 'draft'),
'invisible': (Eval('type') == 'in'),
}, context={
'company': Eval('company'),
'company': Eval('company', -1),
}, depends=['state', 'company'])
@classmethod