I try when i create an activity in the calendar to have automatically my user in my partner_ids (attendees)
I try to add the many2many in the code but it doesn't work !
my code :
def _needaction_domain_get(self, cr, uid, context=None):
return [('date', '<=', time.strftime(DEFAULT_SERVER_DATE_FORMAT + ' 23:59:59')), ('date_deadline', '>=', time.strftime(DEFAULT_SERVER_DATE_FORMAT + ' 23:59:59')), ('user_id', '=', uid), ('partner_ids', 'in', [(6,0,[uid])])]
Thanks for your help !
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: 6/30/16, 4:16 AM|
|Seen: 220 times|
|Last updated: 6/30/16, 5:07 AM|