Skip to content
Snippets Groups Projects
Commit c932daf7 authored by Vanneri's avatar Vanneri Committed by Victor Feyens
Browse files

[FIX] sale_management: Pricelist singleton error while choosing optional product


closes odoo/odoo#60622

X-original-commit: b6ced2e13e328539b086067a836d1e0fba3990b7
Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent d60a5896
Branches
Tags
No related merge requests found
......@@ -232,7 +232,8 @@ class SaleOrderOption(models.Model):
new_sol = self.env['sale.order.line'].new(values)
new_sol._onchange_discount()
self.discount = new_sol.discount
self.price_unit = new_sol._get_display_price(product)
if self.order_id.pricelist_id and self.order_id.partner_id:
self.price_unit = new_sol._get_display_price(product)
def button_add_to_order(self):
self.add_option_to_order()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment