[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user