Odooers论坛

欢迎!

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


0

How can I create a selection of companies ?

形象
丢弃
2 答案
0
形象
odoo
最佳答案

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.


形象
丢弃
0
形象
odoo
最佳答案

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}")

形象
丢弃