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

i defined as follow to display mails in customer(res.partner) window <button name="%(mail.action_mail_archives_feeds)d" type="action" context="{'search_default_partner_ids': name }" string="inbox"/> <button name="%(mail.action_mail_archives_feeds)d" type="action" context="{'search_default_author_id': active_id }" string="outbox"/>

is there any possibility to pass '|' in context to combine both. i want both should be done in single button.

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

Hmmm, i'm not sure what are you trying to do but this should work:

<button name="%(mail.action_mail_archives_feeds)d" type="action" context="{'search_default_author_id': active_id, 'search_default_partner_ids': name }" string="outbox"/>
الصورة الرمزية
إهمال
الكاتب

if we try your opinion we'll obtain the AND condition of author_id and partner_id's . but my requirement is for OR condition.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 25
1210
0
يوليو 22
2314
3
سبتمبر 20
2984
2
ديسمبر 15
4617
0
مارس 15
3088