From 7c55963bb1f401bdbd0efac3e0ae6384f4ea1cfb Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Tue, 24 Sep 2019 12:00:58 +0200 Subject: [PATCH] [DEL] deprecated max_child and max_adult --- hotel/models/hotel_room.py | 3 --- hotel/models/hotel_shared_room.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/hotel/models/hotel_room.py b/hotel/models/hotel_room.py index b564eeed3..79bca659e 100644 --- a/hotel/models/hotel_room.py +++ b/hotel/models/hotel_room.py @@ -25,9 +25,6 @@ class HotelRoom(models.Model): default=False) floor_id = fields.Many2one('hotel.floor', 'Ubication', help='At which floor the room is located.') - - max_adult = fields.Integer('Max Adult') - max_child = fields.Integer('Max Child') capacity = fields.Integer('Capacity') to_be_cleaned = fields.Boolean('To be Cleaned', default=False) extra_beds_allowed = fields.Integer('Extra beds allowed', diff --git a/hotel/models/hotel_shared_room.py b/hotel/models/hotel_shared_room.py index ee58a4ee6..d529f7271 100644 --- a/hotel/models/hotel_shared_room.py +++ b/hotel/models/hotel_shared_room.py @@ -58,8 +58,6 @@ class HotelSharedRoom(models.Model): name = u'%s (%s)' % (self.name, i + 1) bed_vals = { 'name': name, - 'max_adult': 1, - 'max_child': 0, 'capacity': 1, 'room_type_id': self.room_type_id.id, 'sequence': self.sequence,