Upgrade to 5.9

This commit is contained in:
Raimon Esteve 2021-04-27 17:53:16 +02:00
parent d96822ce9d
commit 1e62c8963a
2 changed files with 10 additions and 3 deletions

View File

@ -20,8 +20,15 @@ class Address(metaclass=PoolMeta):
super(Address, cls).__setup__()
cls.postal_code.readonly = True
cls.city.readonly = True
cls.country.states['readonly'] |= Bool(Eval('location'))
cls.subdivision.states['readonly'] |= Bool(Eval('location'))
eval_location = Bool(Eval('location'))
if cls.country.states.get('readonly'):
cls.country.states['readonly'] |= eval_location
else:
cls.country.states['readonly'] = eval_location
if cls.subdivision.states.get('readonly'):
cls.subdivision.states['readonly'] = eval_location
else:
cls.subdivision.states['readonly'] = eval_location
@classmethod
def __register__(cls, module):

View File

@ -1,5 +1,5 @@
[tryton]
version=5.5.0
version=5.9.0
depends:
country
party