[FIX] stock_account: correct forward-port 251b2fdc

5ca0ef97 was forward-ported from 9.0. In 10.0 the function signature
of product.uom's _compute_price has changed. In 10.0 it uses the new
API and it no longer takes a to_uom_id keyword argument.

opw-816738
This commit is contained in:
Joren Van Onder
2018-02-15 15:42:31 -08:00
parent 6cedc90f69
commit e5c6c5db42
+1 -1
View File
@@ -203,7 +203,7 @@ class ProductProduct(models.Model):
price = self.standard_price
if not uom or self.uom_id.id == uom.id:
return price
return self.uom_id._compute_price(self.uom_id.id, price, to_uom_id=uom.id)
return self.uom_id._compute_price(price, uom)
class ProductCategory(models.Model):