Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I am trying to load mail.message wizard using following code in python file:
'name': 'Compose Message',
'domain': [('parent_id', '=',12)],
'views': [(compose_form_id, 'form')],
Wizard is opening proper. I need domain filter on partner_ids field and above domain is not working for that. I tried following scenarios:
'domain': [('parent_id', '=', 12)]
'domain': [['parent_id', '=', 12]]
'domain': [('parent_id', '=', 12), ]
But nothing is working out. Can anyone please help me to find the issue. Do I need to specify field name as well where to put that domain. If yes, then how?
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 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
|Asked: 8/18/16, 1:11 AM|
|Seen: 268 times|
|Last updated: 8/19/16, 1:29 PM|