diff --git a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py index bca4c711b..7868f9c19 100644 --- a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py +++ b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py @@ -211,7 +211,7 @@ class HotelReservationImporter(Component): self._generate_partner_vals(book) ) if is_cancellation: - binding.with_context({ + binding.odoo_id.with_context({ 'connector_no_export': True}).action_cancel() elif binding.state == 'cancelled': binding.with_context({