Skip to Content
Menu
This question has been flagged
5 Replies
10477 Views

i just want many2many checkboxes

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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.

Author

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>

Author

not working

Author

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