[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 <pim@odoo.com>
This commit is contained in:
Pierre Masereel
2022-01-03 15:48:39 +00:00
parent 7e4558b275
commit 50ba91513a
+1 -1
View File
@@ -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