From 647a7bd488c1738ae4639bd60b554f0a5730b213 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 23 Jan 2024 14:07:39 +0000 Subject: [PATCH 1/2] [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 --- web_widget_numeric_step/static/src/numeric_step.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web_widget_numeric_step/static/src/numeric_step.scss b/web_widget_numeric_step/static/src/numeric_step.scss index b7ed1c492b85..04a55184f07f 100644 --- a/web_widget_numeric_step/static/src/numeric_step.scss +++ b/web_widget_numeric_step/static/src/numeric_step.scss @@ -12,3 +12,11 @@ visibility: visible; } } + +.o_numeric_step_cell { + // Default for old browsers + min-width: 15 * $btn-padding-x; + // Value hardcoded in `FIXED_FIELD_COLUMN_WIDTHS.float` + width of 2 + // FontAwesome icons + 2 buttons * 2 horizontal paddings + min-width: calc(92px + 2ex + 4 * #{$btn-padding-x}); +} From c82e0b28d913f3ccb02958347bd55696c658ae3c Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 24 Jan 2024 08:34:14 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- web_widget_numeric_step/README.rst | 2 +- web_widget_numeric_step/__manifest__.py | 2 +- web_widget_numeric_step/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 87ecf5a94bbc..e658cf542c5c 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ addon | version | maintainers | summary [web_widget_bokeh_chart](web_widget_bokeh_chart/) | 16.0.1.1.0 | [![LoisRForgeFlow](https://github.com/LoisRForgeFlow.png?size=30px)](https://github.com/LoisRForgeFlow) [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | This widget allows to display charts using Bokeh library. [web_widget_dropdown_dynamic](web_widget_dropdown_dynamic/) | 16.0.1.0.0 | | This module adds support for dynamic dropdown widget [web_widget_mpld3_chart](web_widget_mpld3_chart/) | 16.0.1.0.0 | [![JordiBForgeFlow](https://github.com/JordiBForgeFlow.png?size=30px)](https://github.com/JordiBForgeFlow) [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | This widget allows to display charts using MPLD3 library. -[web_widget_numeric_step](web_widget_numeric_step/) | 16.0.1.1.2 | [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Web Widget Numeric Step +[web_widget_numeric_step](web_widget_numeric_step/) | 16.0.1.1.3 | [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Web Widget Numeric Step [web_widget_open_tab](web_widget_open_tab/) | 16.0.2.0.0 | | Allow to open record from trees on new tab from tree views [web_widget_plotly_chart](web_widget_plotly_chart/) | 16.0.1.0.0 | [![robyf70](https://github.com/robyf70.png?size=30px)](https://github.com/robyf70) | Allow to draw plotly charts. [web_widget_x2many_2d_matrix](web_widget_x2many_2d_matrix/) | 16.0.1.1.2 | [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | Show list fields as a matrix diff --git a/web_widget_numeric_step/README.rst b/web_widget_numeric_step/README.rst index c244d81b36c9..a821ca88a2d6 100644 --- a/web_widget_numeric_step/README.rst +++ b/web_widget_numeric_step/README.rst @@ -7,7 +7,7 @@ Web Widget Numeric Step !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:08fa3eb42c224d0c7036626e3c67cd9426810dfc3dd22de787374d7adc9fe2d6 + !! source digest: sha256:aa00ea1d2e4245170c8f2a6e774bffe29af982ceddd43292a7871cf6f194fc25 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_widget_numeric_step/__manifest__.py b/web_widget_numeric_step/__manifest__.py index 0f44d0e14a0a..6fedd89e710e 100644 --- a/web_widget_numeric_step/__manifest__.py +++ b/web_widget_numeric_step/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Web Widget Numeric Step", "category": "web", - "version": "16.0.1.1.2", + "version": "16.0.1.1.3", "author": "GRAP, Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/web", diff --git a/web_widget_numeric_step/static/description/index.html b/web_widget_numeric_step/static/description/index.html index d5a4116e19c2..2f907f713ca1 100644 --- a/web_widget_numeric_step/static/description/index.html +++ b/web_widget_numeric_step/static/description/index.html @@ -366,7 +366,7 @@

Web Widget Numeric Step

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:08fa3eb42c224d0c7036626e3c67cd9426810dfc3dd22de787374d7adc9fe2d6 +!! source digest: sha256:aa00ea1d2e4245170c8f2a6e774bffe29af982ceddd43292a7871cf6f194fc25 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This widget changes input number field and make it easier to increment the number thanks to 2 buttons (+ and -).