Add new depends from new get_eval_fields implementation

issue11164
This commit is contained in:
Cédric Krier committed 2022-01-30 20:17:47 +01:00
1 parent e511c74dc5
commit 801d647349
1 file changed
+1
+1
View File
@@ -89,6 +89,7 @@ class WeightPriceList(ModelSQL, ModelView):
help="The carrier that the price list belongs to.")
weight = fields.Float('Weight',
digits=(16, Eval('_parent_carrier', {}).get('weight_uom_digits', 2)),
depends=['carrier'],
help="The lower limit for the price.")
price = Monetary(
"Price", currency='currency', digits='currency',