If you want to define class and attributes in OpenERP use 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()
0 Comment(s)