تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5601 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
1593
2
يوليو 23
1744
0
يناير 20
4977
4
أكتوبر 18
4051
2
نوفمبر 16
4920