Odoo Help


This community 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.


passing context with multiple headers 'OR' prefix operator

on 9/21/13, 7:20 AM 1,223 views

context={ 'default_model': 'res.users', 'default_res_id': uid, 'needaction_menu_ref': ['mail.mail_tomefeeds', 'mail.mail_starfeeds'] }

in this context , header "needaction_menu_ref" has two values 'mail.mail_tomefeeds', 'mail.mail_starfeeds'. in my case, want to pass multiple headers like context={ 'default_model': 'res.partner', 'default_res_id': uid, ['search_default_author_id': active_id ,'search_default_partner_ids': name]}

is it possible?


Andreas Brueckl

--Andreas Brueckl--
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 9/25/13, 8:52 AM

I am not exactly what you are trying to do. If you want to have the default search options search_default_author_id and search_default_partner_ids included into your context, just use:

 context={ 'default_model': 'res.partner', 'default_res_id': uid, 'search_default_author_id': active_id ,'search_default_partner_ids': name}

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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