[FIX] website_sale: Wrong pricelist in 'Suggested Accessories'
Steps to reproduce the bug: - Let's consider two products P1 and P2 where P2 is an accessory of P1 - Let's consider a pricelist PL1 where P1 and P2 = 10€ - Let's consider a pricelist PL2 where P2 = 20€ - Set PL1 as pricelist of Public user - Set PL2 as pricelist of Odoobot - Go to the shop with Public user and add P1 in the cart Bug: The suggested product P2 was at 20€ instead of 10€ opw:2206947 closes odoo/odoo#46973 X-original-commit: a9351a0b28ea753e3b7846dbd6aaade7eca96345 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -996,7 +996,7 @@
|
||||
<table t-if="suggested_products" id="suggested_products" class="js_cart_lines table table-striped table-sm">
|
||||
<tbody>
|
||||
<tr t-foreach="suggested_products" t-as="product">
|
||||
<t t-set="combination_info" t-value="product._get_combination_info_variant()"/>
|
||||
<t t-set="combination_info" t-value="product._get_combination_info_variant(pricelist=website_sale_order.pricelist_id)"/>
|
||||
<td class='td-img text-center'>
|
||||
<a t-att-href="product.website_url">
|
||||
<span t-field="product.image_128" t-options="{'widget': 'image', 'qweb_img_responsive': False, 'class': 'rounded o_image_64_max'}" />
|
||||
|
||||
Reference in New Issue
Block a user