mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] to assign Wubook reservations
This commit is contained in:
@@ -607,6 +607,7 @@ class HotelReservationImporter(Component):
|
|||||||
folio_id = hotel_folio_obj.with_context({
|
folio_id = hotel_folio_obj.with_context({
|
||||||
'connector_no_export': True}).create(vals)
|
'connector_no_export': True}).create(vals)
|
||||||
|
|
||||||
|
|
||||||
# Update Reservation Spitted Parents
|
# Update Reservation Spitted Parents
|
||||||
sorted_rlines = folio_id.room_lines.sorted(key='id')
|
sorted_rlines = folio_id.room_lines.sorted(key='id')
|
||||||
for k_pid, v_pid in splitted_map.items():
|
for k_pid, v_pid in splitted_map.items():
|
||||||
@@ -619,6 +620,9 @@ class HotelReservationImporter(Component):
|
|||||||
for rline in rlines:
|
for rline in rlines:
|
||||||
for rline_bind in rline.channel_bind_ids:
|
for rline_bind in rline.channel_bind_ids:
|
||||||
self.binder.bind(rline_bind.external_id, rline_bind)
|
self.binder.bind(rline_bind.external_id, rline_bind)
|
||||||
|
# TODO: Imp refactoring method
|
||||||
|
# Force to_assign = true (fix the to_assign splitted reservations)
|
||||||
|
rline.update({'to_assign': True})
|
||||||
|
|
||||||
processed_rids.append(rcode)
|
processed_rids.append(rcode)
|
||||||
return (processed_rids, any(failed_reservations),
|
return (processed_rids, any(failed_reservations),
|
||||||
|
|||||||
Reference in New Issue
Block a user