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)