Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • osv.osv object in OpenERP

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 419
    Comment on it

    osv.osv object in OpenERP:-

    OSV is a openerp descriptor class which must inherit all the class modules for openerp development. In other words we can say that, In openerp osv.osv object is actually an orm.Model class and define a new object, you must define a new Python class then instantiate it. This class must inherit from the osv class in the osv module. Example:-

    class name_of_the_object(osv.osv):
            _name = 'name.of.the.object'
            _columns = {
                       // define field here 
                       }
    
    name_of_the_object()
    

    Predefined fields:-
    * _columns (required) -
    In _columns to define field and field value store in database The object fields See the fields section for further details.
    *_name (required) :-
    Name of the object. Default value: None.

 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: