Fix the update of uom_digits on product change
This commit is contained in:
parent
28ce654fa3
commit
ca643dcc70
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