Fix the update of uom_digits on product change
This commit is contained in:
parent
45331b2de7
commit
2087c3489d
2
plan.py
2
plan.py
|
@ -584,7 +584,7 @@ class PlanProductLine(ModelSQL, ModelView):
|
||||||
if self.product:
|
if self.product:
|
||||||
return self.product.default_uom.category.id
|
return self.product.default_uom.category.id
|
||||||
|
|
||||||
@fields.depends('uom')
|
@fields.depends('uom', 'product')
|
||||||
def on_change_with_uom_digits(self, name=None):
|
def on_change_with_uom_digits(self, name=None):
|
||||||
if self.uom:
|
if self.uom:
|
||||||
return self.uom.digits
|
return self.uom.digits
|
||||||
|
|
Loading…
Reference in New Issue