From 897f3cdc077bc2769377f2dbc41321dc27f2a011 Mon Sep 17 00:00:00 2001 From: Pablo Date: Thu, 26 Sep 2019 18:55:04 +0200 Subject: [PATCH] [ADD] get wubook special offers rate_id --- .../models/hotel_reservation/importer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py index 0d5ea9aa7..e13989889 100644 --- a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py +++ b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py @@ -179,6 +179,9 @@ class HotelReservationImporter(Component): rate_id = brday['rate_id'] # TODO: Review different pricelist in the different booked rooms (folio in Odoo) + # Get the special offer rate id if any or the rate_id sent by Wubook / OTAs included in the roomdays + rate_id = book.get('ancillary', {}).get('wubook_special_rate_id', rate_id) + parity_rate_id = self.env['channel.backend'].search([ ('id', '=', self.backend_record.id) ]).wubook_parity_pricelist_id