summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2017-01-10 21:29:52 +0100
committerJeremy Kersten <jke@odoo.com>2017-01-10 22:50:19 +0100
commit6b87284f3f00527b10cb41477849079423c97211 (patch)
treeb3e010b0e15058f25e6a01e900e4ebc5625fad7e /addons/web/static/src/js/views/basic/basic_controller.js
parenta5dc060afb142c58509ba773c3d1c766678513c0 (diff)
[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@1f10ef8055f6c661fc6407a8ce4593dfc30452b4 It should also fix (by side-effect) the translation JS for user without editor right. Already fixed in V9 - don't forward this commit...
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions