Skip to Content
Menu

Widget Slider for Numeric Field

by
Odoo
v 17.0 Third Party 259
Download for v 17.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 77
Technical Name web_field_slider
LicenseLGPL-3
Versions 15.0 16.0 17.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 77
Technical Name web_field_slider
LicenseLGPL-3
Versions 15.0 16.0 17.0

Widget Slider for Numeric Field

Preview

How to Use

If the attributes (min, max, step) are not set, they will default to (0, 100, 1).
You can also pass an expression as a value.

Contact me

Skype: live:hieuhoangminh1996
Email: hieuhoangminh1996@gmail.com

Email subject should begin with [Odoo Module]

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
by
Cristobal
on 8/8/24, 7:42 AM

by
Cristobal
on 8/8/24, 7:42 AM

widget="slider"
step="1"
min="100"
max="field_max + 50"
/>


if I am including in the view

Re:
by
Hoàng Minh Hiếu
on 8/8/24, 10:24 PM Author

Add like the picture in module description. Put in the view


by
Cristobal
on 8/8/24, 7:41 AM
field_max = fields.Integer(default=100)
slider_value = fields.Integer(string='Slider Value', default=0)





widget="slider"
step="1"
min="100"
max="field_max + 50"
/>


This is how the fields are defined, could I be doing something wrong? 

etested in odoo 17


Thank you very much for your help, and for sharing your knowledge, greetings


by
Cristobal
on 8/8/24, 7:40 AM
field_max = fields.Integer(default=100)
slider_value = fields.Integer(string='Slider Value', default=0)




widget="slider"
step="1"
min="100"
max="field_max + 50"
/>


This is how the fields are defined, could I be doing something wrong? 

etested in odoo 17


Thank you very much for your help, and for sharing your knowledge, greetings


by
Cristobal
on 8/8/24, 5:57 AM

How should I use it since defining the

field_max = fields.Integer(default=100)


is giving the following error:

Caused by: ReferenceError: field_max is not defined

Re:
by
Hoàng Minh Hiếu
on 8/8/24, 6:57 AM Author

Have u put field_max on the view already?