mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Importe pricelist id
This commit is contained in:
@@ -147,7 +147,7 @@ class HotelReservationImporter(Component):
|
||||
# TODO: Review different pricelist in the different booked rooms (folio in Odoo)
|
||||
rate_id = rate_id > 0 and rate_id or self.env['channel.backend'].sudo().search([
|
||||
('id', '=', self.backend_record.id)
|
||||
]).wubook_parity_pricelist_id
|
||||
]).wubook_parity_pricelist_id.id
|
||||
# Get OTA
|
||||
ota_id = self.env['channel.ota.info'].search([
|
||||
('backend_id', '=', self.backend_record.id),
|
||||
@@ -170,7 +170,7 @@ class HotelReservationImporter(Component):
|
||||
'checkout': checkout_str,
|
||||
'adults': persons,
|
||||
'children': book['children'],
|
||||
'pricelist_id': rate_id.id,
|
||||
'pricelist_id': rate_id,
|
||||
'reservation_line_ids': reservation_lines,
|
||||
'to_assign': True,
|
||||
'state': is_cancellation and 'cancelled' or 'confirm',
|
||||
|
||||
Reference in New Issue
Block a user