[FIX] repair: product change

Make sure to trigger price computation even when the UoM doesn't change.

closes odoo/odoo#32139

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-03-27 07:16:25 +00:00
parent e9c7fc0d93
commit b1ed7b4637
+4 -1
View File
@@ -598,8 +598,9 @@ class RepairLine(models.Model):
'title': _('No pricelist found.'),
'message':
_('You have to select a pricelist in the Repair form !\n Please set one before choosing a product.')}
if warning:
return {'warning': warning}
else:
self._onchange_product_uom()
@api.onchange('product_uom')
def _onchange_product_uom(self):
@@ -665,6 +666,8 @@ class RepairFee(models.Model):
'message':
_('You have to select a pricelist in the Repair form !\n Please set one before choosing a product.')}
return {'warning': warning}
else:
self._onchange_product_uom()
@api.onchange('product_uom')
def _onchange_product_uom(self):