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 67499a6829
commit bbeea0e473
+1 -2
View File
@@ -368,8 +368,7 @@ class Package(MeasurementsMixin, object, metaclass=PoolMeta):
domain=[('category', '=', Id('product', 'uom_cat_weight'))],
states={
'required': Bool(Eval('additional_weight')),
},
depends=['additional_weight'])
})
total_weight = fields.Function(
fields.Float(
"Total Weight", digits='weight_uom',