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
|Asked: 8/18/16, 1:11 AM|
|Seen: 181 times|
|Last updated: 8/19/16, 1:29 PM|