Merge branch '11.0' of https://github.com/hootel/hootel into pr_onboard_service_line

This commit is contained in:
Dario Lodeiros
2018-12-16 12:56:19 +01:00
2 changed files with 2 additions and 4 deletions

View File

@@ -60,12 +60,11 @@ class HotelRoomTypeResrtrictionItem(models.Model):
# Construct dictionary with relevant info of removed records
unlink_vals = []
for record in self:
if record.restriction_id.id != restrictions_default_id or \
record.applied_on != '0_room_type':
if record.restriction_id.id != restrictions_default_id:
continue
unlink_vals.append({
'restriction_id': record.restriction_id.id,
'date': record.date_start,
'date': record.date,
'min_stay': 0,
'min_stay_arrival': 0,
'max_stay': 0,

View File

@@ -112,7 +112,6 @@ class TestManagementCalendar(TestHotelCalendar):
rest_it_obj = self.env['hotel.room.type.restriction.item'].sudo(
self.user_hotel_manager)
rest_ids = rest_it_obj.search([
('applied_on', '=', '0_room_type'),
('restriction_id', '=', self.default_restriction_id),
('room_type_id', 'in', (self.hotel_room_type_budget.id,
self.hotel_room_type_special.id)),