跳至內容
選單
此問題已被標幟
5 回覆
11631 瀏覽次數

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