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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 120
    Comment on it

    If you want to create a model in OpenERP use like below code -

    from openerp.osv import fields, osv
    class course(osv.osv):
        _name='course'
        _columns= {
                   'name':fields.char("Name",size=128,domain=[('name', '=',2)]),
                   'gender':fields.boolean('Male'),
                   'description':fields.char("description",size=200),
                   'persons_id':fields.many2one('res.users' ,'person'),
                   'session':fields.one2many('session' ,'course','Session'),
                   "qualification" : fields.selection([('a1','Undergraduate X'),('a2','Graduate'),('a3','Post Graduate')],"Education Qualification"),
                   "termination1" : fields.many2one('hr.role1',' Termination'),  
                   }

 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: