Skip to content

[16.0][FIX] pms: a check-in confirms the room assignment - #470

Merged
OCA-git-bot merged 1 commit into
OCA:16.0from
DarioLodeiros:16.0-fix-pms-checkin-clears-to-assign
Nov 2, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:16.0from
DarioLodeiros:16.0-fix-pms-checkin-clears-to-assign

Conversation

@DarioLodeiros

@DarioLodeiros DarioLodeiros commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Brings to 16.0 the fix proposed by @davidpachecop in commitsun#234.

What happens today

Reservations imported from a channel arrive with an automatic room and the to_assign flag on, so the front desk reviews and confirms the assignment. That flag survives the check-in. A reservation with a guest already on board keeps showing as pending assignment, and in the app that colour takes precedence over the "in house" one, both on the planning and on the reservation card.

So the staff can move a guest who is already in the room to another one without noticing, and the original room is then free to be sold again.

The change

A guest sleeping in the room settles the assignment. action_on_board now clears to_assign together with the state change to onboard.

  • pms/models/pms_checkin_partner.py: the state write now also sets to_assign = False.
  • pms/tests/test_pms_checkin_partner.py: test_onboard_reservation_clears_to_assign.

to_assign is only read to flag and colour reservations, so nothing else reacts to the change.

@oca-cla-bot

oca-cla-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

DarioLodeiros added a commit to commitsun/pms that referenced this pull request Nov 2, 2026
This reverts commit a707d91.

The fix is general and goes to OCA/pms 16.0 instead (OCA#470).
The builds already take 16.0, so it does not have to live in this branch.
@DarioLodeiros
DarioLodeiros force-pushed the 16.0-fix-pms-checkin-clears-to-assign branch from c0a890a to b083d87 Compare November 2, 2026 14:57
Reservations imported from a channel are created with an automatic room
and flagged as pending assignment (to_assign) until someone at the front
desk confirms it. Until now that flag survived the check-in, so a
reservation with a guest already on board kept showing as "pending
assignment" in the PMS: the colour meant to attract attention to a new
booking was hiding the fact that the room was occupied, and the staff
could move the guest to another room without noticing.

A guest sleeping in the room settles the assignment. action_on_board now
clears to_assign together with the state change to onboard.

Originally proposed in commitsun#234.
@DarioLodeiros
DarioLodeiros force-pushed the 16.0-fix-pms-checkin-clears-to-assign branch from b083d87 to 76ce34f Compare November 2, 2026 15:45
@DarioLodeiros

Copy link
Copy Markdown
Member Author

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-470-by-DarioLodeiros-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit c3409fd into OCA:16.0 Nov 2, 2026
8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at fe985a6. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants