Odoo Help


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.


Specify Form To load it's objects

on 11/21/14, 7:01 AM 488 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 "----------------------------------------"



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)


Asked: 11/21/14, 7:01 AM
Seen: 488 times
Last updated: 3/16/15, 8:10 AM