Skip to content
Snippets Groups Projects
Commit 762ec993 authored by Sergi Almacellas Abellana's avatar Sergi Almacellas Abellana
Browse files

Remove dot notation usage on Eval

issue8528
review255711002
(grafted from 79e10cde69e0)
parent 645f75ba
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,6 @@
carrier = fields.Many2One('carrier', 'Carrier', required=True, select=True,
help="The carrier that the price list belongs to.")
weight = fields.Float('Weight',
digits=(16, Eval('_parent_carrier.weight_uom_digits', 2)),
digits=(16, Eval('_parent_carrier', {}).get('weight_uom_digits', 2)),
help="The upper limit for the price.")
price = fields.Numeric('Price',
......@@ -110,6 +110,7 @@
help="The upper limit for the price.")
price = fields.Numeric('Price',
digits=(16, Eval('_parent_carrier.weight_currency_digits', 2)),
digits=(16, Eval('_parent_carrier', {}).get(
'weight_currency_digits', 2)),
help="The price of the carrier service.")
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment