[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:
Victor Feyens
2023-09-14 18:09:48 +00:00
parent ab16589d6c
commit f71cd64567
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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,
+1 -1
View File
@@ -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'])"/>