Commit Graph

54 Commits

Author SHA1 Message Date
OCA-git-bot
3760f167b4 [BOT] post-merge updates 2024-08-08 08:55:04 +00:00
Carlos Roca
087ea08d0c [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-08-08 08:02:39 +02:00
OCA-git-bot
c82e0b28d9 [BOT] post-merge updates 2024-01-24 08:34:14 +00:00
OCA-git-bot
3052ffdb7d Merge PR #2729 into 16.0
Signed-off-by yajo
2024-01-24 08:31:16 +00:00
Jairo Llopis
647a7bd488 [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-01-23 14:07:39 +00:00
OCA-git-bot
90dfe42460 [BOT] post-merge updates 2024-01-12 11:53:54 +00:00
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
Weblate
7f9937ab81 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-16.0/web-16.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_numeric_step/
2023-12-14 14:04:34 +00:00
OCA-git-bot
cb5fd37c5f [BOT] post-merge updates 2023-12-14 14:04:15 +00:00
oca-ci
2b17944db8 [UPD] Update web_widget_numeric_step.pot 2023-12-14 14:01:18 +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
OCA-git-bot
2b40138c74 Merge PR #2691 into 16.0
Signed-off-by yajo
2023-12-12 11:01:02 +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
mymage
440373bc5f Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-16.0/web-16.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_numeric_step/it/
2023-11-27 11:33:57 +00:00
Ivorra78
0175acda95 Translated using Weblate (Spanish)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-16.0/web-16.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_numeric_step/es/
2023-10-15 20:36:35 +00:00
Weblate
37cec07746 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-16.0/web-16.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_numeric_step/
2023-10-09 20:15:46 +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
oca-ci
55c349d86e [UPD] Update web_widget_numeric_step.pot 2023-05-02 10:39:53 +00:00
dsolanki
2b72477e08 [MIG] web_widget_numeric_step: Migration to 16.0 2023-03-21 11:12:55 +05:30
dsolanki
976797cfa0 [IMP] web_widget_numeric_step: pre-commit stuff 2023-03-16 18:06:35 +05:30
OCA-git-bot
614b7818ba [UPD] README.rst 2023-03-16 18:06:35 +05:30
oca-ci
6625cf8a0d [UPD] Update web_widget_numeric_step.pot 2023-03-16 18:06:35 +05:30
Thanakrit Pintana
38b717c8c0 [MIG] web_widget_numeric_step: Migration to 15.0 2023-03-16 18:06:35 +05:30
Corneliuus
d330eb8d4a Translated using Weblate (German)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-14.0/web-14.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_numeric_step/de/
2023-03-16 18:06:35 +05:30
Corneliuus
99ed30ecea Added translation using Weblate (German) 2023-03-16 18:06:35 +05:30
OCA-git-bot
a7be36fc56 [UPD] README.rst 2023-03-16 18:06:35 +05:30
oca-travis
72ea2e68e9 [UPD] Update web_widget_numeric_step.pot 2023-03-16 18:06:35 +05:30
helly
e45c6ef909 [MIG] Migrate module web_widget_numeric_step to v14. 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
OCA-git-bot
6377d694eb web_widget_numeric_step 13.0.1.1.0 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
Alessandro Fiorino
cdbbc48da2 Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-13.0/web-13.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_numeric_step/it/
2023-03-16 18:06:35 +05:30
Alessandro Fiorino
a07c2e7ac6 Added translation using Weblate (Italian) 2023-03-16 18:06:35 +05:30
OCA-git-bot
4c3f0c5f8a [UPD] README.rst 2023-03-16 18:06:35 +05:30
oca-travis
2dee527b50 [UPD] Update web_widget_numeric_step.pot 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
claudiagn
6c09ac16de Translated using Weblate (Spanish)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-12.0/web-12.0-web_widget_numeric_step
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_numeric_step/es/
2023-03-16 18:06:35 +05:30
claudiagn
2a32183322 Added translation using Weblate (Spanish) 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