From 74ea712bab086a45c587af2e3ee1ce4842709a50 Mon Sep 17 00:00:00 2001 From: Valentin Chevalier Date: Fri, 25 Aug 2023 16:10:18 +0200 Subject: [PATCH] [FIX] sale: can't open catalog with product on multiple lines In 89d5d1f, changes have been made to the catalog to ease inheritance. Since this change, opening the catalog with products spread over multiple lines on the SO crashes. Now, the catalog will open even if the SO contains products spread across multiple lines. closes odoo/odoo#133217 Signed-off-by: Victor Feyens (vfe) --- addons/sale/models/sale_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/models/sale_order_line.py b/addons/sale/models/sale_order_line.py index 1ab06528b22..9fccf03fc82 100644 --- a/addons/sale/models/sale_order_line.py +++ b/addons/sale/models/sale_order_line.py @@ -1223,7 +1223,7 @@ class SaleOrderLine(models.Model): order = order_line.order_id return { 'readOnly': True, - 'price': order.pricelist._get_product_price( + 'price': order.pricelist_id._get_product_price( product=order_line.product_id, quantity=1.0, currency=order.currency_id,