summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-04-30 13:29:27 +0200
committerDenis Ledoux <dle@odoo.com>2015-04-30 13:39:30 +0200
commit1da5d89ba32526f241b3a0ce82b25a2fa9ee858f (patch)
treec0c1ab5a19a747d91d489fe46dae5e0b6c6bcc43 /addons/website/static/src/js/website.editor.js
parentf2f4391e8bc0a135f0b1c4afe93e272cb27407b6 (diff)
[FIX] web: advanced search on floats with ',' as decimal separator
When using another decimal separator than `.` (dot) in the language settings, it wasn't possible to build an advanced search specifying the decimals. e.g. with a language with decimal separator `,` and thousand separator `.`, if you want to search invoices with amount total 366,38 The advanced search "Total" "is equal to" obliged you to enter your number with `.` as separator (366.38), and then, when entering the search, the `.` was regarded as the thousand separator, giving as domain `('amount_total', '=', 36638)`, which is not what you asked. opw-634201 PS: The `|| '.'` in the xml template are only for retro-compatibility, so if the server sources are updated, but the browser cache is not refreshed (meaning the Javascript code isn't refreshed, and, therefore, `widget.decimal_point is undefined) it still works.
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
0 files changed, 0 insertions, 0 deletions