Commit Graph

28 Commits

Author SHA1 Message Date
Jairo Llopis
4fc210a7a6 [FIX] web_widget_numeric_step: restore tab navigation
Before this patch, when navigating inputs hitting <kbd>TAB</kbd>, you were stopped before any numeric step input.

Now, you can navigate as usual and use Odoo without a 🐁.

@moduon MT-4657
2024-01-11 07:35:26 +00:00
OCA-git-bot
86d79fb10f [BOT] post-merge updates 2023-12-22 12:07:27 +00:00
Jairo Llopis
48eb4e6727 [FIX] web_widget_numeric_step: no input focus on touch screens
If you're using a tablet and click on the  or  buttons created by this module, the result was that the numeric input related to that button got focused.

On tablets, that means that the on-screen keyboard pops up. This usually triggers a layout recalculation and becomes clunky. Besides, it's useless, because if you wanted to use the keyboard, you'd have clicked on the input by yourself, and not in one of those buttons.

After this change, when using a touch screen, if you click on the +/- buttons, you won't auto-focus on the input. Thus, the keyboard won't show up.

@moduon MT-4472
2023-12-22 11:29:14 +00:00
OCA-git-bot
cb5fd37c5f [BOT] post-merge updates 2023-12-14 14:04:15 +00:00
Jairo Llopis
b6ca76d338 [FIX] web_widget_numeric_step: always display on touch screens; avoid layout jumping otherwise
Before this patch:
- On a tablet, buttons wouldn't display (big screen; can't hover).
- On a PC, fields would make layout jumps while hovering.

@moduon MT-4472
2023-12-14 12:49:51 +00:00
OCA-git-bot
e39a1201cc [BOT] post-merge updates 2023-12-12 11:16:11 +00:00
Jairo Llopis
ffda6da374 [FIX] web_widget_numeric_step: disable buttons on readonly fields
Before this patch, if a field was readonly, the user could still use the +/- buttons to alter its value. Not good!

@moduon MT-4396
2023-12-12 11:05:06 +00:00
OCA-git-bot
dfa39504fc [BOT] post-merge updates 2023-12-12 11:04:09 +00:00
Jairo Llopis
d914b4eadc [IMP] web_widget_numeric_step: display always on mobile
Mobile screens benefit most from this module's enhanced usability.

However, since the events used for displaying/hiding the +/- buttons depend on mouse, at the end you'll never see these buttons on mobile screens.

Thus, here's a new approach: smaller screens *always* display the buttons.

Besides, inputmode is now decimal, just like upstream float fields.

@moduon MT-4396
2023-12-12 11:00:18 +00:00
OCA-git-bot
0fcc326ee1 [UPD] README.rst 2023-09-03 17:59:06 +00:00
OCA-git-bot
e7b01c2545 [UPD] README.rst 2023-05-02 10:42:48 +00:00
dsolanki
2b72477e08 [MIG] web_widget_numeric_step: Migration to 16.0 2023-03-21 11:12:55 +05:30
OCA-git-bot
614b7818ba [UPD] README.rst 2023-03-16 18:06:35 +05:30
OCA-git-bot
a7be36fc56 [UPD] README.rst 2023-03-16 18:06:35 +05:30
fshah
67c37332cb [IMP] web_widget_numeric_step: isort, black, prettier. 2023-03-16 18:06:35 +05:30
Alexandre D. Díaz
90bc0c46e1 [IMP] web_widget_numeric_step: Add auto_select option 2023-03-16 18:06:35 +05:30
OCA-git-bot
4c3f0c5f8a [UPD] README.rst 2023-03-16 18:06:35 +05:30
Carlos Roca
32a464dfcb [MIG] web_widget_numeric_step: Migration to v13 2023-03-16 18:06:35 +05:30
Carlos Roca
973fd6dde2 [IMP] web_widget_numeric_step: black, isort, prettier 2023-03-16 18:06:35 +05:30
Alexandre D. Díaz
92f0e6a481 [FIX] web_widget_numeric_step: Only modify widget parent 2023-03-16 18:06:35 +05:30
Ernesto Tejeda
76d239299b [IMP] web_widget_numeric_step: better visualization in list view cells 2023-03-16 18:06:35 +05:30
Alexandre Díaz
20c27852f7 [FIX] web_widget_numeri_step: Change click interval
Previous this commit, the task for auto-step can enter in a
infinite loop. Now only creates a new task if no other task is running.
2023-03-16 18:06:35 +05:30
Alexandre Díaz
dae7e4e21b [FIX] web_widget_numeric_step: Change number parse method
Previous this commit the widget only works with 'dots', with
this commit works using odoo parse method that support other separators.
2023-03-16 18:06:35 +05:30
Alexandre Díaz
322bb8cebf [IMP] web_widget_numeric_step: Event handler 2023-03-16 18:06:35 +05:30
Sergio Teruel
074418cb6f [FIX] web_widget_numeric_step: Fix _onChange input fields methods disabled by the widget 2023-03-16 18:06:35 +05:30
Alexandre Díaz
3e69323446 [FIX] web_widget_numeric_step: Float Precision 2023-03-16 18:06:35 +05:30
Alexandre Díaz
def062a759 [IMP] web_widget_numeric_step: Better CSS and supports mobile layouts 2023-03-16 18:06:35 +05:30
Quentin Dupont
a5ca0070df [ADD] Widget Numeric step 2023-03-16 18:06:35 +05:30