Commit Graph

16 Commits (5e7345efc0817945b4bf13abd85be5e101037b51)

Author SHA1 Message Date
OCA-git-bot 9a532016ed [BOT] post-merge updates 2024-08-08 10:06:52 +00:00
Carlos Roca f2dc559958 [IMP] web_widget_numeric_step: Add demo data to test the module 2024-08-07 07:10:47 +02:00
achulii 8ff02de12d [IMP] web_widget_numeric_step: pre-commit auto fixes 2024-08-06 08:59:25 +02:00
Jairo Llopis 360356aa62 [FIX] web_widget_numeric_step: list view column min width
Default width is too narrow for these fields in list views, which makes it uncomfortable to use in desktops.

@moduon MT-4472
2024-08-06 08:59:25 +02:00
Jairo Llopis fd36a3bbdd [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-08-06 08:59:25 +02:00
Jairo Llopis 78c0924e50 [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
2024-08-06 08:59:25 +02:00
Jairo Llopis 9a16a74ea2 [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
2024-08-06 08:59:25 +02:00
Jairo Llopis 886ae3dc55 [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
2024-08-06 08:59:25 +02:00
Jairo Llopis a9c6da55df [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
2024-08-06 08:59:25 +02:00
dsolanki 555edab290 [MIG] web_widget_numeric_step: Migration to 16.0 2024-08-06 08:59:25 +02:00
Thanakrit Pintana b389db6930 [MIG] web_widget_numeric_step: Migration to 15.0 2024-08-06 08:59:25 +02:00
helly 81c91d64e5 [MIG] Migrate module web_widget_numeric_step to v14. 2024-08-06 08:59:25 +02:00
Alexandre D. Díaz 0fc5f03b0b [IMP] web_widget_numeric_step: Add auto_select option 2024-08-06 08:59:25 +02:00
Carlos Roca 251b874cdc [MIG] web_widget_numeric_step: Migration to v13 2024-08-06 08:59:25 +02:00
Alexandre Díaz cafa6fefed [IMP] web_widget_numeric_step: Better CSS and supports mobile layouts 2024-08-06 08:32:55 +02:00
Quentin Dupont c3ad285c19 [ADD] Widget Numeric step 2024-08-06 08:32:55 +02:00