mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: force_overbooking in PUT external request
This commit is contained in:
@@ -1845,7 +1845,8 @@ class PmsFolioService(Component):
|
||||
reservations_vals.pop(reservations_vals.index(val))
|
||||
if val[2].get("state") == "confirm":
|
||||
self.env["pms.reservation"].with_context(
|
||||
force_write_blocked=True
|
||||
force_write_blocked=True,
|
||||
force_overbooking=True if external_app else False,
|
||||
).browse(val[1]).action_confirm()
|
||||
# delete from reservations_vals the field state
|
||||
val[2].pop("state")
|
||||
|
||||
Reference in New Issue
Block a user