Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3360 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 24
2156
1
úno 23
7696
0
bře 15
8206
1
bře 15
7460
1
bře 15
7778