Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How can I create a selection of companies ?

Avatar
odoo
Avatar
Discard
2 Answers
0
Avatar
odoo
Best Answer

Morning Bro, 

related fields must have the same type :

so,

 company[name] is a Char fields 

and your company is a Selection field of other field 

not only that , but you may have multiple company  

so i think that you should compute the value of your selection field not to use the related option 

and in your compute function make sure to loop on your company List then: appened vals into your selection.


Avatar
Discard
0
Avatar
odoo
Best Answer

The only field that you need is the many2one from res.company, and then add that field to te view (with options="{'no_create_edit': True, 'no_open': True}")

Avatar
Discard