mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: fix action_cancel reservation and service name none
This commit is contained in:
@@ -769,7 +769,7 @@ class PmsFolioService(Component):
|
||||
force_write_blocked=True if external_app else False,
|
||||
)._compute_board_service_room_id()
|
||||
if reservation.stateCode == "cancel":
|
||||
reservation.action_cancel()
|
||||
reservation_record.action_cancel()
|
||||
pms_folio_info.transactions = self.normalize_payments_structure(
|
||||
pms_folio_info, folio
|
||||
)
|
||||
|
||||
@@ -483,7 +483,7 @@ class PmsReservationService(Component):
|
||||
PmsServiceInfo(
|
||||
id=service.id,
|
||||
reservationId=service.reservation_id,
|
||||
name=service.name,
|
||||
name=service.name or service.product_id.name,
|
||||
productId=service.product_id.id,
|
||||
quantity=service.product_qty,
|
||||
priceTotal=round(service.price_total, 2),
|
||||
|
||||
Reference in New Issue
Block a user