Fix the update of uom_digits on product change

This commit is contained in:
Sim? Albert i Beltran 2017-12-22 10:53:51 +01:00
parent 28ce654fa3
commit ca643dcc70
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ class PlanProductLine(ModelSQL, ModelView):
if self.product:
return self.product.default_uom.category.id
@fields.depends('uom')
@fields.depends('uom', 'product')
def on_change_with_uom_digits(self, name=None):
if self.uom:
return self.uom.digits