odoo/addons/website_sale/views
Jeremy Kersten 6b87284f3f [FIX] website_sale: fix amount format
This commit fix wrong grouping when we format price via price_to_str.
where '[3,0]' was interpreted as string and not array in intersperse.

Thousand separator was duplicated ",,,320.00" e.g.

This commit fix also product page where amount for variant was formatted
js side before that RPC translation (website.ready() defered) was resolved.

'/website/translations' is only called when user have rights to edit page.
So a standard user didn't call it and l10n is not initialized.

After an update, now we format the amount with the l10n value.
To stay retro compatible, if l10n is not initialized (value = [])
we use [] for grouping as 'fallback value'.

To fix decimal precision you need to update the template product_price.
To fix the grouping, you need to update the website.layout
To fix the decimal separator, (and previous fix), you just need to pull the JS

This commit is related to #1103, #11553, #14772, #14874, ...
And fix the previous fix odoo/odoo@1f10ef8055

It should also fix (by side-effect) the translation JS for user without editor
right.

Already fixed in V9 - don't forward this commit...
2017-01-10 22:50:19 +01:00
..
payment.xml [ADD] website_sale: added inherit of the transaction 2014-04-04 10:44:20 +02:00
sale_order.xml [IMP] website_sale: do not show transaction on sale order 2014-09-17 12:59:06 +02:00
templates.xml [FIX] website_sale: fix amount format 2017-01-10 22:50:19 +01:00
views.xml [FIX] website_sale: no need to specific to a selection field that it is of type char 2014-10-17 14:48:45 +02:00