コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5006 ビュー

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
1月 25
1409
0
7月 22
2464
3
9月 20
3123
2
12月 15
4724
0
3月 15
3193