Commit Graph

19 Commits (b68529cfec1defa2e66a3b2bcdefbbdd554cbe66)

Author SHA1 Message Date
OCA-git-bot 18f066e8eb [BOT] post-merge updates 2025-02-12 09:30:53 +00:00
OCA-git-bot 6a6f55f960 [BOT] post-merge updates 2025-01-09 12:34:06 +00:00
Carlos Roca 944a4acadc [MIG] web_widget_numeric_step: Migration to 18.0 2025-01-08 17:23:19 +01:00
Carlos Roca 0889f10f58 [FIX] web_widget_numeric_step: Remove focus to avoid annoying flickering effect
The focus introduced on the 16.0 migration is causing a flickering effect
that is a bit annoying and does not make complete sense, because if you
click more than once the cursor is positioned at the end of the text,
which makes it difficult to edit the input.

The counterpart of these changes is that to edit the input using the
keyboard we will have to click on the field. Although this is how the
module has been operating since its inception.
2024-12-23 12:11:10 +01:00
Carlos Roca d2ef14d209 [IMP] web_widget_numeric_step: Add demo data to test the module 2024-12-23 12:11:10 +01:00
achulii 593e6d35ff [IMP] web_widget_numeric_step: pre-commit auto fixes 2024-12-23 12:11:10 +01:00
Jairo Llopis 7f0723bd05 [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-12-23 12:11:10 +01:00
Jairo Llopis 57ce599883 [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-12-23 12:11:10 +01:00
Jairo Llopis 714d7abb00 [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-12-23 12:11:10 +01:00
Jairo Llopis 0d3ab6c305 [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-12-23 12:11:10 +01:00
Jairo Llopis 2b7d748937 [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-12-23 12:11:10 +01:00
Jairo Llopis 7722b38721 [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-12-23 12:11:10 +01:00
dsolanki c7cae98637 [MIG] web_widget_numeric_step: Migration to 16.0 2024-12-23 12:11:10 +01:00
Thanakrit Pintana 7a51f08a6b [MIG] web_widget_numeric_step: Migration to 15.0 2024-12-23 12:11:10 +01:00
helly 83a6321c49 [MIG] Migrate module web_widget_numeric_step to v14. 2024-12-23 12:11:10 +01:00
Alexandre D. Díaz b2f183e64c [IMP] web_widget_numeric_step: Add auto_select option 2024-12-23 12:11:10 +01:00
Carlos Roca 64267339c2 [MIG] web_widget_numeric_step: Migration to v13 2024-12-23 12:11:10 +01:00
Alexandre Díaz 15390ea18f [IMP] web_widget_numeric_step: Better CSS and supports mobile layouts 2024-12-23 12:08:29 +01:00
Quentin Dupont 05ec5b7182 [ADD] Widget Numeric step 2024-12-23 12:08:29 +01:00