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

I have a one2many field suppose "list_ids" on a from and need to put some filter on that, like there is a filed in my modelA by name field1. Now i want to put a domain filter that field1 is False then it should not be visible otherwise not. But it's not working 


 <field name="list_ids" domain="[('field1','=',False)]" readonly="1"/>


But it's not working, please help. 

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

I found the answer and want to share, it do not work in XML and one2many field, but it worked why you put the same filter in python file at one2many field .

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
سبتمبر 21
5158
0
نوفمبر 21
2508
8
مارس 20
4060
0
أكتوبر 19
3292
0
أكتوبر 19
3844