Odoo Help

0

how to use Prefix operators '|' in context

By
Surendar
on 9/21/13, 7:00 AM 1,451 views

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.

0
Grover Menacho
On 9/21/13, 6:43 PM

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.

Surendar
on 9/23/13, 12:12 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/21/13, 7:00 AM
Seen: 1451 times
Last updated: 3/16/15, 8:10 AM