[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) <vfe@odoo.com>
This commit is contained in:
Valentin Chevalier
2023-08-28 11:24:41 +00:00
parent 15d6f2f9b4
commit 74ea712bab
+1 -1
View File
@@ -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,