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

model is ir.actions.act_window

I want to have context evaluate as OR not AND for following

<field name="context">{'search_default_writer': active_id }</field> <field name="context">{'search_default_director':active_id }</field> <field name="context">{'search_default_producer':active_id }</field>

Obviously these need to be in a single context statement, but what is correct format.

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

Just separate with , <field name="context">{'search_default_writer': active_id, 'search_default_director': active_id, 'search_default_producer': active_id }</field>

الصورة الرمزية
إهمال
الكاتب

I tried that initially - creates an AND logic statement (ie values = A and values = B and values = C) not an OR statement. I tried putting the '|' at the front but it didn't like that

أفضل إجابة

I think that you are making some mistakes here.

The context sent on the ir.actions is going to be a value in the context dictionary. It's not conditional, it's only going to send all the context. Domains are conditional, but context are only variables that you are sending to the window.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 25
1313
0
يوليو 22
2421
3
سبتمبر 20
3075
2
ديسمبر 15
4693
0
مارس 15
3398