Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5322 Tampilan

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.

Avatar
Buang
Jawaban Terbai

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"/>
Avatar
Buang
Penulis

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.

Post Terkait Replies Tampilan Aktivitas
1
Jan 25
1716
0
Jul 22
2783
3
Sep 20
3387
2
Des 15
5034
0
Mar 15
3442