Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4963 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

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.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Jan. 25
1393
0
Juli 22
2461
3
Sept. 20
3114
2
Dez. 15
4720
0
März 15
3179