mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix patch reservation update room type id
This commit is contained in:
committed by
Darío Lodeiros
parent
cef4d9f860
commit
a772290c77
@@ -199,6 +199,8 @@ class PmsReservationService(Component):
|
||||
reservation.confirm()
|
||||
if reservation_data.toCheckout is not None and reservation_data.toCheckout:
|
||||
reservation.action_reservation_checkout()
|
||||
if reservation_data.roomTypeId:
|
||||
reservation.room_type_id = reservation_data.roomTypeId
|
||||
|
||||
reservation_vals = self._create_vals_from_params(
|
||||
reservation_vals, reservation_data
|
||||
|
||||
Reference in New Issue
Block a user