Odoo Help

0

Add Followers to stock.picking.in

By
Peter
on 4/1/15, 8:30 AM 570 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

stock_picking_in_followers() 

Can you help me? Thanks
0

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: 4/1/15, 8:30 AM
Seen: 570 times
Last updated: 1/7/16, 1:49 AM