Odoo Help

Welcome!

This community 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.

2

add followers automatically

By
sayed fathy
on 12/17/13, 5:27 PM 3,612 views

Hello in crm.lead the responsible user (user_id) is automatically added as follower to the new task. How can I add this functionality to add some users to my custom object?

Write to the message_follower_ids field.

Gopakumar N G
on 12/18/13, 2:57 AM

Please, can you explain more!

sayed fathy
on 12/19/13, 4:52 AM

You can overwrite the create function and inject the ids on the message_follower_ids

OMNIA SOLUTIONS S.n.c. di Boscolo Matteo & C., Matteo Boscolo
on 12/20/13, 7:10 AM

it returns false

sayed fathy
on 12/22/13, 2:37 PM

In your custom module, add a field like this: 'user_id': fields.many2one('res.users', 'Anyname', select=True, track_visibility='onchange'), Then create a record and click Save. The user you specified in user_id field will automatically added on the list of followers

Aldennis
on 5/4/14, 8:37 AM

What if i want to add follower not user_id field or the parent of the user_id field

sayed fathy
on 5/5/14, 10:12 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/17/13, 5:27 PM
Seen: 3612 times
Last updated: 10/1/15, 6:55 PM