Send only the required fields when fetching a readonly view definition
issue11134 review380081002
This commit is contained in:
@@ -41,7 +41,6 @@ class _TaxRuleLineMixin:
|
||||
states={
|
||||
'invisible': ~Eval('from_country'),
|
||||
},
|
||||
depends=['from_country'],
|
||||
help="Apply only to addresses in this subdivision.")
|
||||
to_country = fields.Many2One(
|
||||
'country.country', 'To Country', ondelete='RESTRICT',
|
||||
@@ -54,7 +53,6 @@ class _TaxRuleLineMixin:
|
||||
states={
|
||||
'invisible': ~Eval('to_country'),
|
||||
},
|
||||
depends=['to_country'],
|
||||
help="Apply only to addresses in this subdivision.")
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ class Purchase(metaclass=PoolMeta):
|
||||
for field in (cls.invoice_address, cls.warehouse):
|
||||
field.states['readonly'] |= (
|
||||
Eval('lines', [0]) & Eval('invoice_address'))
|
||||
field.depends.extend(['invoice_address'])
|
||||
|
||||
|
||||
class Line(metaclass=PoolMeta):
|
||||
|
||||
Reference in New Issue
Block a user