Skip to content

[16.0][IMP] pms: non-refundable option for cancellation rules - #458

Merged
OCA-git-bot merged 1 commit into
OCA:16.0from
commitsun:16.0-imp-pms-cancelation-rule-non-refundable
Oct 17, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:16.0from
commitsun:16.0-imp-pms-cancelation-rule-non-refundable

Conversation

@davidpachecop

Copy link
Copy Markdown

The form labels days_intime as "Max. days InTime before Checkin", which is the opposite of what the code does: cancelling at least N days before check-in is free, and 0 means free until arrival. As a result, non-refundable rates had to be emulated with a huge number of days.

  • New is_non_refundable flag: the late penalty always applies, and the days field is hidden.
  • The label and help of days_intime now describe the actual behaviour, with es.po updated.

Existing rules keep their behaviour. Tests are added for both cases.

days_intime was labelled as the opposite of what the code does: cancelling
at least that many days before check-in is free, and 0 means free until
arrival. Non-refundable rates had to be emulated with a huge number of days.

Add a Non-refundable flag that always applies the late penalty, and fix the
label and help of days_intime.
@davidpachecop

Copy link
Copy Markdown
Author

cc @DarioLodeiros as maintainer of this module.

@DarioLodeiros

Copy link
Copy Markdown
Member

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-458-by-DarioLodeiros-bump-minor, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 7c04f24 into OCA:16.0 Oct 17, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 9f53d50. 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.

3 participants