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

Example i have 5 fields 

my last 5th field depended other fields 

like this 

First Fields is Department selection is IT Department Account Department Etc ....

In Department is Selection like Software Section / Hardware Selection in IT Department 

In Selection Designation Software Engineer etc etc ....

if any of value miss show all employee list ... in my employee field


الصورة الرمزية
إهمال
أفضل إجابة

You can return a domain in onchange of your fields. eg:

return {'domain': {'field_name': [domain]}}

الصورة الرمزية
إهمال
أفضل إجابة

You can return like this,

return {'domain':{'field_name': [('field_name', '=', self.field_name)]}}


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
naked domain set up تم الحل
3
يوليو 25
4310
0
مايو 25
883
2
مارس 24
2157
0
يناير 23
1745
1
نوفمبر 22
3200