Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4954 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 25
1370
0
ก.ค. 22
2452
3
ก.ย. 20
3101
Significance of context ? แก้ไขแล้ว
2
ธ.ค. 15
4711
0
มี.ค. 15
3165