Send only the required fields when fetching a readonly view definition

issue11134
review380081002
This commit is contained in:
Nicolas Évrard
2022-04-08 19:07:12 +02:00
parent 902ecc78e8
commit 4cf61a985b
+1 -3
View File
@@ -131,8 +131,7 @@ class TaxLine(metaclass=PoolMeta):
],
states={
'invisible': ~Eval('on_cash_basis', False),
},
depends=['company', 'on_cash_basis'])
})
@classmethod
def default_on_cash_basis(cls):
@@ -222,7 +221,6 @@ class Invoice(metaclass=PoolMeta):
states={
'invisible': Eval('type') != 'in',
},
depends=['type'],
help="The tax group reported on cash basis for this invoice.")
@fields.depends('party', 'type')