Skip to content

[16.0][ADD] pms_l10n_es: unaccompanied minors declaration - #435

Open
jesusVMayor wants to merge 1 commit into
OCA:16.0from
commitsun:16.0-add-ses-unaccompanied-minors-folio
Open

[16.0][ADD] pms_l10n_es: unaccompanied minors declaration#435
jesusVMayor wants to merge 1 commit into
OCA:16.0from
commitsun:16.0-add-ses-unaccompanied-minors-folio

Conversation

@jesusVMayor

Copy link
Copy Markdown
Member

Minors travelling on their own with the authorization of their legal guardian cannot be checked in. pms_l10n_es requires every guest under 18 to declare a relationship with an accompanying guest, and when the whole party is made of minors there is nobody to relate them to.

This adds a declaration that waives that requirement, plus an optional binary to keep the guardian's authorization. The case was tried against the staging environment of the Hospedajes webservice, which accepts it.

Why the authorization is optional

The hotel is legally required to keep the authorization of the minor's guardian. The field stays optional so no hotel is forced to store it in Odoo.

Why the declaration belongs to the folio

The guardians may be booked in one reservation and the minors in another one of the same folio, so a reservation would decide it on the wrong set of guests.
The fields are exposed on the reservation as well, since that is where they get managed.

Why unknown birthdates are ignored

Checkin data gets filled in any order, so a guest whose birthdate is not known yet is left out of both rules:

  • the declaration shows up when there is at least one guest with a birthdate and every one of them is a minor,
  • and it is refused on boarding when some guest of the folio is known to be of age.

Completeness and consistency are kept apart: what a single guest must fill in stays in _checkin_mandatory_fields, and the folio-wide check that the declaration still holds runs on boarding.

Minors travelling on their own with their guardian's authorization could not
be checked in: every guest under 18 required a relationship with an
accompanying guest. The declaration waives it, and lives on the folio since
guardians and minors may be booked in different reservations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants