mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] pms-api-rest: change route patch reservation (CORS issue)
This commit is contained in:
committed by
Darío Lodeiros
parent
a31d45cdbd
commit
0f278354e1
@@ -120,7 +120,7 @@ class PmsReservationService(Component):
|
||||
[
|
||||
(
|
||||
[
|
||||
"/<int:reservation_id>",
|
||||
"/p/<int:reservation_id>",
|
||||
],
|
||||
"PATCH",
|
||||
)
|
||||
@@ -128,6 +128,7 @@ class PmsReservationService(Component):
|
||||
input_param=Datamodel("pms.reservation.info", is_list=False),
|
||||
auth="jwt_api_pms",
|
||||
)
|
||||
# TODO: route changed because bug route CORS patch
|
||||
def update_reservation(self, reservation_id, reservation_data):
|
||||
reservation = self.env["pms.reservation"].search([("id", "=", reservation_id)])
|
||||
reservation_vals = {}
|
||||
|
||||
Reference in New Issue
Block a user