Odoo Help


Specify Form To load it's objects

on 11/21/14, 7:01 AM 650 views


I'm trying to access spicific object which is 'product_id' avilable on stock.move , on ' stock.view_move_picking_form '

from python code i want to inhirit this form to get a value from this filed , i tried to inhirit 'stock.move' once i tryed to get product_id value am getting same value even if i did any changes , the value will never change because am sure am trying to get wrong view field .


so is there any way to specify which form to deal with from python code .

my code is :

class stock_move(osv.osv):
    def onchange_product_rolls_dec(self,cr,uid,ids,context=None):
        print "----------------------------------------"

        myobj = self.pool.get('stock.move').browse(cr, uid, uid, context)
        print myobj.product_id.display_name
        print "----------------------------------------"



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: 11/21/14, 7:01 AM
Seen: 650 times
Last updated: 3/16/15, 8:10 AM