summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2017-11-22 12:39:37 +0100
committerAlexandre Kühn <aku@odoo.com>2017-11-22 14:16:00 +0100
commit732f176fe1789eb513f77dfa0a671bd992db39c9 (patch)
tree3efe547f1354c2084e194e1fee0c2af7be42745c /addons/web/static/src/xml
parentf414b4227a80417250f4f48593d2b63af07a3c25 (diff)
[FIX] web: readonly monetary field onchange currency
Before this fix: A readonly monetary field was not updating its currency symbol when selecting another currency. Scenario: 1. Activate multi-currency with $ (default) and € 2. In hr_expense, go to My Expenses to Submit 3. Create a new expense 4. Select 'EUR' as currency => Unit Price is correctly updated with €, but not Total. With this fix: Total displays the correct currency in edit mode. Explanation: Monetary fields in readonly are relying on _formatValue() to display their value. _formatValue() uses this.formatOptions.currency, which stores the currency at loading of the field. We must update its value whenever there is a change of currency. opw-783378
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions