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.

0

Add Followers to stock.picking.in

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

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