mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Import reservation with unknown wubook rate
This commit is contained in:
@@ -145,6 +145,13 @@ class HotelReservationImporter(Component):
|
||||
tprice += room_day_price
|
||||
rate_id = brday['rate_id']
|
||||
# TODO: Review different pricelist in the different booked rooms (folio in Odoo)
|
||||
if rate_id < 0:
|
||||
rate_id = 0
|
||||
self.create_issue(
|
||||
section='reservation',
|
||||
internal_emssage="Reservation imported with unknown \
|
||||
pricelist (established by default)",
|
||||
channel_object_id=book['reservation_code'])
|
||||
if rate_id == 0:
|
||||
default_rate_id = self.env['channel.backend'].search([
|
||||
('id', '=', self.backend_record.id)
|
||||
|
||||
Reference in New Issue
Block a user