From 7f7f9b9f263e13e3cbdfc65eb410c1c7bdc5a91b Mon Sep 17 00:00:00 2001 From: Pablo Date: Mon, 11 Mar 2019 12:36:02 +0100 Subject: [PATCH] [FIX] return in action_cancel --- .../models/hotel_reservation/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hotel_channel_connector_wubook/models/hotel_reservation/common.py b/hotel_channel_connector_wubook/models/hotel_reservation/common.py index 15157043d..e889cc45b 100644 --- a/hotel_channel_connector_wubook/models/hotel_reservation/common.py +++ b/hotel_channel_connector_wubook/models/hotel_reservation/common.py @@ -60,8 +60,7 @@ class HotelReservation(models.Model): if user.has_group('hotel.group_hotel_call'): self.write({'to_assign': True}) - return = super(HotelReservation, self).action_cancel() - return res + return super(HotelReservation, self).action_cancel() @api.multi def confirm(self):