-
- Downloads
[FIX] website_sale: fix fiscal position update in eCommerce cart
- Install website_sale - Go to Website > Products > Products and create a Product with "Tax 15.00%" (i.e. Product X) - Publish the Product on Website - Go to Invoicing > Configuration > Fiscal Positions - Create a first Fiscal Position: * Fiscal Position (Name): Fiscal Position A * Tax Mapping: Tax 15.00% => Tax 15.00% - Create a second Fiscal Position: * Fiscal Position (Name): Fiscal Position B * Tax Mapping: Tax 15.00% => Tax 0.00% - Create a Portal User (i.e. User X) - Go to Contacts and edit User X to set his Fiscal Position to Fiscal Position A - Connect with User X - Go to online Shop and add Product X in the cart - Open "My Cart" => Taxes are displayed correctly - Process checkout and enter an address, but do not pay - Disconnect - Change Fiscal Position of User X to Fiscal Position B - Reconnect with User X and open "My cart" - Open "My Cart" => Taxes are displayed as if the Fiscal Position has not been changed The prices and taxes in the cart are still based on the previous fiscale position. To fix that, fiscale position of SO will be compared to fiscale position of user, even if user has not changed. Howerver, as it is a specific use case, it will only be done if "sale_order_id" is not in session anymore. Also the cart from user's last visit will not be reloaded, but a new one will be created, as it is done when used pricelist is not available anymore. opw-2300330 closes odoo/odoo#60585 X-original-commit: bd77d0ca35a0ab724d235aca989b9c2357a25caf Signed-off-by:Anh Thao PHAM <kitan191@users.noreply.github.com> Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
Please register or sign in to comment