Commit Graph

13 Commits (fb29a0ad1466bb2d2492d5c0a20ddfe68a85bef4)

Author SHA1 Message Date
Jairo Llopis 77b09d555c
[IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.
2020-01-30 10:52:55 +00:00
Jairo Llopis d096c0fbba [FIX] web_decimal_numpad_dot: Restore keyboard navigation
When https://github.com/OCA/web/pull/1154 switched to using `keydown` as the event to trigger the numpad dot replacement, it was actually [disabling upstream's `_onKeyDown()`][1], which in turn disabled the keyboard navigation.

To fix this situation, I replaced the method that is being used to directly override `_onKeyDown`.

[1]: 19558129f0/addons/web/static/src/js/fields/abstract_field.js (L41)
2019-10-14 13:08:57 +02:00
Jairo Llopis 166cd74f80 [FIX] web_decimal_numpad_dot: Fix inconsistent behavior
When user was replacing some specific sections or being too fast, the module wasn't behaving fine. Also, it was always displaying the original `.` slightly before doing the replacement.
2019-10-14 13:08:57 +02:00
David Vidal 6cce0eadfc [FIX] web_decimal_numpad: float_time format (#1068)
Recover functionality from https://github.com/OCA/web/pull/720, which was lost in migration to Odoo v11.
2019-10-14 13:08:57 +02:00
Jordi Ballester Alomar 6c36d8ad84 fix tab navigation issue in web_decimal_numpad_dot 2019-10-14 13:08:57 +02:00
David Vidal 01b4d7c789 [FIX] web_decimal_numpad: extend FieldMonetary (#867) 2019-10-14 13:08:57 +02:00
David 66ceb23129 [MIG] web_decimal_numpad_dot: Migration to 11.0 2019-10-14 13:08:57 +02:00
Jairo Llopis 9a9fdcbb55 [FIX][IMP][web_decimal_numpad_dot] Support float time
- All Char widgets were getting affected by this behavior.
- Time float widgets now get ":" instead of "," or ".".
- Little code refactor.
- Only detect numpad dot, not normal dot and comma.
2019-10-14 13:08:57 +02:00
David Vidal ed2bd81efe [MIG] web_decimal_numpad_dot: Migration to 10.0 2019-10-14 13:08:57 +02:00
Roel Adriaans 991c194962 [IMP] web_decimal_numpad_dot: use the decimal_point defined in user language 2019-10-14 13:08:57 +02:00
Omar Castiñeira Saavedra 1a03fd4273 [IMP] web_decimal_numpad_dot: fixed float widget not working properly 2019-10-14 13:08:57 +02:00
oihane 588c56213c [IMP] web_decimal_numpad_dot: now changes . for , in floating numbers 2019-10-14 13:08:57 +02:00
oihane 17ba265fa6 [ADD] New module <web_decimal_numpad_dot> 2019-10-14 13:08:57 +02:00