Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4961 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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"/>
Awatar
Odrzuć
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.

Powiązane posty Odpowiedzi Widoki Czynność
1
sty 25
1389
0
lip 22
2460
3
wrz 20
3112
2
gru 15
4717
0
mar 15
3175