From 82c4bc3c46c10fa4e18a8c24ee792c88dfc0e411 Mon Sep 17 00:00:00 2001 From: Pablo Date: Tue, 19 Feb 2019 20:12:32 +0100 Subject: [PATCH] [FIX] 'channel.hotel.reservation' object has no attribute 'action_cancel' --- .../models/hotel_reservation/importer.py | 2 +- 1 file changed, 1 insertion(+), 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 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({