website_sale_tax_toggle
Allow website shoppers to switch between tax-included and tax-excluded pricing on the Odoo web shop.
Key Features
- website_sale: Injects a toggle widget on shop and product pages and adjusts price snippet caching so visitors can switch between tax-included and tax-excluded views.
- controllers: Provides a JSON endpoint that flips the tax display preference in the visitor session and returns the updated state.
- ir.http: Initializes the tax display session flag for frontend visitors according to the website's subtotal tax configuration.
- product.template: Recomputes website prices with or without taxes based on the visitor's session preference when applying taxes to prices.
- web.assets_frontend: Registers a frontend widget that invokes the toggle endpoint, updates the checkbox state, and refreshes the page to reflect the new tax display.
- migrations: Converts legacy tax toggle preference values into the core website subtotal tax selection field during upgrades.