Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
11623 มุมมอง

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