Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4859 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
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.

Related Posts Odpovědi Zobrazení Aktivita
1
led 25
1154
0
čvc 22
2271
3
zář 20
2946
2
pro 15
4589
0
bře 15
3071