mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] get wubook special offers rate_id
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user