Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to define many2many field in OpenERP/Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 505
    Comment on it

    If you want to define many2many field in OpenERP use like below code -

    1. class test (osv.osv):
    2. _inherit='sale.order.line'
    3. _columns={
    4.  
    5. 'product1_cat':fields.char('product academy'),
    6. 'product&_cat':fields.many2one('product.category','Product category'),
    7. }
    8.  
    9.  
    10. class test (osv.osv):
    11. _inherit='res.partner'
    12. _columns={
    13. 'name':fields.char("NAME")

    14.  
    15. }
    16.  
    17.  
    18. test()

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: