Upgrade to 5.9
This commit is contained in:
parent
d96822ce9d
commit
1e62c8963a
11
party.py
11
party.py
|
@ -20,8 +20,15 @@ class Address(metaclass=PoolMeta):
|
||||||
super(Address, cls).__setup__()
|
super(Address, cls).__setup__()
|
||||||
cls.postal_code.readonly = True
|
cls.postal_code.readonly = True
|
||||||
cls.city.readonly = True
|
cls.city.readonly = True
|
||||||
cls.country.states['readonly'] |= Bool(Eval('location'))
|
eval_location = Bool(Eval('location'))
|
||||||
cls.subdivision.states['readonly'] |= 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
|
@classmethod
|
||||||
def __register__(cls, module):
|
def __register__(cls, module):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[tryton]
|
[tryton]
|
||||||
version=5.5.0
|
version=5.9.0
|
||||||
depends:
|
depends:
|
||||||
country
|
country
|
||||||
party
|
party
|
||||||
|
|
Loading…
Reference in New Issue