[FIX] website_sale: correctly update prices according to fiscal position
The prices displayed on the /shop page were not refreshed if the fiscal position computed for the current partner was modified. Part-of: odoo/odoo#121986
This commit is contained in:
@@ -452,6 +452,7 @@ class WebsiteSale(http.Controller):
|
||||
'attrib_set': attrib_set,
|
||||
'pager': pager,
|
||||
'pricelist': pricelist,
|
||||
'fiscal_position': fiscal_position_sudo,
|
||||
'add_qty': add_qty,
|
||||
'products': products,
|
||||
'search_product': search_product,
|
||||
|
||||
@@ -946,7 +946,7 @@
|
||||
Change accordingly to the derired visual result (eg. `primary`, `dark`...)-->
|
||||
<t t-set="navClass" t-valuef="light"/>
|
||||
|
||||
<t t-cache="pricelist,product">
|
||||
<t t-cache="pricelist,product,fiscal_position">
|
||||
<t t-set="combination" t-value="product._get_first_possible_combination()"/>
|
||||
<t t-set="combination_info" t-value="product._get_combination_info(combination, add_qty=add_qty)"/>
|
||||
<t t-set="product_variant" t-value="product.env['product.product'].browse(combination_info['product_id'])"/>
|
||||
|
||||
Reference in New Issue
Block a user