Odoo Help


Add Followers to stock.picking.in

on 4/1/15, 8:30 AM 520 views

Im tryin to add followers to every new stock.picking.in object. Wrote a module for that, but it doesnt work:

from osv import osv, fields

class stock_picking_in_followers(osv.osv):
    _inherit = "stock.picking.in"
    def create(self, cr, user, vals, context=None):
        self.message_subscribe(cr, user, [stock_picking_in.id], [20], context=context)
        new_id = super(stock_picking_in, self).create(cr, user, vals, context)
        return new_id


Can you help me? Thanks

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


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)


Asked: 4/1/15, 8:30 AM
Seen: 520 times
Last updated: 1/7/16, 1:49 AM