Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
11629 Представления

i just want many2many checkboxes

how to select all the field values in many2 many searchmore option  field odoo10

Аватар
Отменить
Лучший ответ

Hi saiharitha,

You can use many2many field in python and use widget many2many_checkboxes in view of that field. You will see all values of many2many field visible, form these you can select any value by clicking checkbox. 

For more reference see: http://ludwiktrammer.github.io/odoo/form-widgets-many2many-fields-options-odoo.html

Please accept and upvote answer if it will helpful for you.

Thanks and regards

Haresh Kansara

Аватар
Отменить
Автор

i want hole checkbox like when i click one checkbox select all checkboxes.what you said is which one you want click one after one i wont like this

Ok, then you don't need to set any widget it's by default feature, you can select multiple records in many2many fields, if any records in relation table.

Автор

but the view is different it shows like table

i want in that particular field entering all the data at a time by cick checkboxes

Then you can do like:

<field name="many2many_field">

<tree>

<!-- Here you can use any sub field of many2many field table --!>

</tree>

</field>

Автор

not working

Автор

my dout is how to select all the values at a time that is i am asking in many2many