Hello Guys. Can some help with how to do checkboxes but the options are added through a selection field or can be added manually... and only one should be selected at a time.
I need both the python code and xml for view.
Thanks...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Guys. Can some help with how to do checkboxes but the options are added through a selection field or can be added manually... and only one should be selected at a time.
I need both the python code and xml for view.
Thanks...
You will use radio widget:
Add field in py:
type = fields.Selection(string='Type', selection=[('A', 'A'), ('B', 'B')])in XML View,
<field name="type" widget="radio" >
If you want the radio boxes to show horizontally you will add options="{'horizontal': true}"
<field name="type" widget="radio" options="{'horizontal': true}"/>
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
1
груд. 19
|
3525 | |||
|
Odoo Mail Sending Limit
Вирішено
|
2
груд. 23
|
16160 | ||
|
0
лист. 23
|
2640 | |||
|
0
жовт. 23
|
33 | |||
|
3
жовт. 23
|
790 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Thanks, Waleed Mohsen, Am going to use radio buttons however much, How can I organize the radio buttons like putting three per row...