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