From f6e527c86ea3c2013e6fed99b7ec6d11b46e56b6 Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Sat, 20 Apr 2019 11:14:08 +0200 Subject: [PATCH] [FIX] Allow cancel reservation from wubook --- .../models/hotel_reservation/importer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py index 7c530d136..e05277326 100644 --- a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py +++ b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py @@ -242,7 +242,8 @@ class HotelReservationImporter(Component): ) if is_cancellation: binding.odoo_id.with_context({ - 'connector_no_export': True}).action_cancel() + 'connector_no_export': True, + 'ota_limits': False}).action_cancel() # WuBook always add +1 in the channel manager for cancelled reservation # However, the quota in Odoo has preference in the availability cancelled_dates = binding.reservation_line_ids.mapped('date')