From 50ba91513a298746fa2b427b39bc5a7f4e8dd3f5 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 3 Jan 2022 14:44:02 +0000 Subject: [PATCH] [FIX] point_of_sale: signature of _price_get changed During the refactoring in pricelists made in PR:https://github.com/odoo/odoo/pull/79605 the signature of the function _price_get has changed and needs to get a recordset of product instead of an ID. So we know pass the product record closes odoo/odoo#81161 Signed-off-by: Masereel Pierre --- addons/point_of_sale/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/models/product.py b/addons/point_of_sale/models/product.py index f6627037b5d..f7471edde22 100644 --- a/addons/point_of_sale/models/product.py +++ b/addons/point_of_sale/models/product.py @@ -59,7 +59,7 @@ class ProductProduct(models.Model): pricelists = config.available_pricelist_ids else: pricelists = config.pricelist_id - price_per_pricelist_id = pricelists._price_get(self.id, quantity) + price_per_pricelist_id = pricelists._price_get(self, quantity) pricelist_list = [{'name': pl.name, 'price': price_per_pricelist_id[pl.id]} for pl in pricelists] # Warehouses