diff options
| author | Julien (juc) Castiaux <juc@odoo.com> | 2018-11-06 11:45:07 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-11-08 09:51:38 +0000 |
| commit | 60d519b89043f1116ff6686ec4752593c7a49e1f (patch) | |
| tree | f261900de5cde424712f3d04d022233bc7e5ae4e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 566cece592b4c711b655a7445ed454afc6ced46a (diff) | |
[FIX] web: format function missing in percentage widget
The format function was missing for the percentage widget type, so
`field_utils.parse[this.formatType]` (see [1]) resolved as
`undefined` which is not a function and so raised an error when
the user was trying to update the field.
This PR add that parsing function. Both `xx%` and `0.xx` are
understood by the parser and resolve to the correct float value.
opw-1895979
[1] https://github.com/odoo/odoo/blob/e220721a8ee80c02fe5aba5ed8c9f3f4ae54ea97/addons/web/static/src/js/fields/abstract_field.js#L399
closes odoo/odoo#28431
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
