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:14 +02:00
parent cd74d5fab6
commit 57b2bfa5ce
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -16,7 +16,6 @@ class Template(metaclass=PoolMeta):
states={
'invisible': Eval('type') == 'service',
},
depends=['type', 'default_uom_category'],
help="The default unit for lot.")
-2
View File
@@ -17,7 +17,6 @@ class LotUnitMixin:
domain=[
('category', '=', Eval('product_default_uom_category', -1)),
],
depends=['product_default_uom_category'],
help="The biggest unit for the lot.")
unit_quantity = fields.Float(
"Unit Quantity", digits='unit',
@@ -25,7 +24,6 @@ class LotUnitMixin:
'required': Bool(Eval('unit')),
'invisible': ~Eval('unit'),
},
depends=['unit'],
help="The maximal quantity for the lot.")
product_default_uom_category = fields.Function(