From e5c6c5db4274a97f0a70bf44dd49b7537f8a1289 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Thu, 15 Feb 2018 15:30:26 -0800 Subject: [PATCH] [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 --- addons/stock_account/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py index 126bc59960a..58d02d203c8 100644 --- a/addons/stock_account/models/product.py +++ b/addons/stock_account/models/product.py @@ -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):