Commit Graph

16 Commits

Author SHA1 Message Date
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
fshah
8f82b0a673 [IMP] web_widget_numeric_step: isort, black, prettier. 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
Carlos Roca
d3c0c9eef0 [IMP] web_widget_numeric_step: black, isort, prettier 2024-12-23 12:11:10 +01:00
Alexandre D. Díaz
df7a3011e3 [FIX] web_widget_numeric_step: Only modify widget parent 2024-12-23 12:11:10 +01:00
Ernesto Tejeda
c52cc95378 [IMP] web_widget_numeric_step: better visualization in list view cells 2024-12-23 12:11:10 +01:00
Alexandre Díaz
2e2f09c465 [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.
2024-12-23 12:08:29 +01:00
Alexandre Díaz
3a2355227a [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.
2024-12-23 12:08:29 +01:00
Alexandre Díaz
a1db96ce43 [IMP] web_widget_numeric_step: Event handler 2024-12-23 12:08:29 +01:00
Sergio Teruel
18a979bcd3 [FIX] web_widget_numeric_step: Fix _onChange input fields methods disabled by the widget 2024-12-23 12:08:29 +01:00
Alexandre Díaz
20bae6ce80 [FIX] web_widget_numeric_step: Float Precision 2024-12-23 12:08:29 +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