Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to inherit the modules in OpenERP (Odoo) ?

    • 0
    • 2
    • 2
    • 0
    • 0
    • 0
    • 0
    • 0
    • 731
    Comment on it

    First we have to look customized module, according to there requirement fields class, model and then we have to decide to inherit existing module. As in below .py (Python file):-

    class Demo(osv.osv):
        _inherit='sale.order.line'   // sale.order.line is inherit //
        _columns={
    
            'product1_cat':fields.char('product academy'),
            'product_cat':fields.many2one('product.category','Product category'),
                  }
    
    class part(osv.osv):
        _inherit='res.partner'
        _columns={
                  'name':fields.char("NAME")
    
                  }    
    
    Demo()
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: