跳至內容
選單
此問題已被標幟
3371 瀏覽次數

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 ! 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 24
2166
1
2月 23
7707
0
3月 15
8209
1
3月 15
7469
1
3月 15
7790