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

HI, I want to add dynamic values to Selection field in odoo 12, selection field is present in one2many field and I am passing context for the function to get values. I am able to get the values in function but when I check in front end the selection field is not showing any values. 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

why you don't just use a many2one field with widget 'selection' and you can add domain to check the values available in the one2many only

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, 

You can follow following link for this:

https://youtu.be/GPhgxxwprA4

Hope it helps,

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 25
5388
1
ก.ค. 25
2007
2
ก.ค. 23
1914
4
ต.ค. 18
4300
2
พ.ย. 16
5133