[FIX] website_sale: _website_product_id_change
When setting a pricelist for a product P with a fixed price, the fixed price was not displayed in the cart. opw:728312
This commit is contained in:
@@ -67,12 +67,11 @@ class SaleOrder(models.Model):
|
||||
'pricelist': order.pricelist_id.id,
|
||||
})
|
||||
product = self.env['product.product'].with_context(product_context).browse(product_id)
|
||||
|
||||
pu = product.price
|
||||
if order.pricelist_id and order.partner_id:
|
||||
order_line = order._cart_find_product_line(product.id)
|
||||
if order_line:
|
||||
pu = self.env['account.tax']._fix_tax_included_price(order_line._get_display_price(product), product.taxes_id, order_line.tax_id)
|
||||
pu = self.env['account.tax']._fix_tax_included_price(pu, product.taxes_id, order_line.tax_id)
|
||||
|
||||
return {
|
||||
'product_id': product_id,
|
||||
|
||||
Reference in New Issue
Block a user