Odoo Help

0

Add Partner in activities automatically

By
Coralie Cardon
on 6/30/16, 4:16 AM 467 views

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 ! 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 6/30/16, 4:16 AM
Seen: 467 times
Last updated: 6/30/16, 5:07 AM