Se rendre au contenu
Menu
Cette question a été signalée

Hello ! 


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 ! 

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
janv. 24
2169
1
févr. 23
7711
0
mars 15
8213
1
mars 15
7469
1
mars 15
7791