diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-04-06 13:43:15 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-04-06 14:34:10 +0200 |
| commit | 8c029e230e648c5ff80110ae3d4b715067327329 (patch) | |
| tree | cf2021b737805432bec33608a33468cc67567589 /addons/web/static/src/js/framework/session_instance.js | |
| parent | 29851b74aacc2ab54ecde1474839f78ebe03ef5f (diff) | |
[FIX] website_sale: do not force user's language
When adding a product to the cart via _website_product_id_change, some
information are set in the context to mimic `product_id_change` from sale.
In the context of a sale.order redacted in backend, using the language of the
`partner_id` makes sense as the quotation should be in the language of the
customer and not the user writing it.
In the ecommerce scenario, this is not the case. The language is set in the URL
and can be passed as an argument.
Scenario to fix:
Add a product to the cart when visiting the website in a different language.
The product name and description were in English (or language of public user if
different) instead of the language of the website when adding it to cart.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
