[FIX] website_quote: either you adapt the price or you don't
When changing the template of a quote, lines and suggested lines are added to your quotation The price of line is adapted to the quote's pricelist but not the price of options This commit adds this behaviour to option lines
This commit is contained in:
@@ -230,7 +230,9 @@ class sale_order(osv.osv):
|
||||
options = []
|
||||
for option in quote_template.options:
|
||||
if pricelist_id:
|
||||
price = pricelist_obj.price_get(cr, uid, [pricelist_id], option.product_id.id, 1, context=context)[pricelist_id]
|
||||
uom_context = context.copy()
|
||||
uom_context['uom'] = option.uom_id.id
|
||||
price = pricelist_obj.price_get(cr, uid, [pricelist_id], option.product_id.id, 1, context=uom_context)[pricelist_id]
|
||||
else:
|
||||
price = option.price_unit
|
||||
options.append((0, 0, {
|
||||
|
||||
Reference in New Issue
Block a user