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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 122
    Comment on it

    We will have to remove .py file, rename the class and its attributes to something like below code.

    from osv import osv, fields
    class travel_hostel(osv.osv):
    _name = travel.hostel
    _inherit = res.partner
    _columns = {
    rooms_id: fields.one2many(travel.room, hostel_id, Rooms),
    quality: fields.char(Quality, size=16),
    }
    _defaults = {
    }
    travel_hostel()

    Note- With the help of this code we willchange main module .

 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: