Skip to content

[18.0][FW] membership_extension: multiple ports from 16.0#215

Merged
OCA-git-bot merged 4 commits intoOCA:18.0from
moduon:oca-port-membership_extension-16.0-to-18.0-4a0067
Feb 5, 2026
Merged

[18.0][FW] membership_extension: multiple ports from 16.0#215
OCA-git-bot merged 4 commits intoOCA:18.0from
moduon:oca-port-membership_extension-16.0-to-18.0-4a0067

Conversation

@yajo
Copy link
Member

@yajo yajo commented Feb 2, 2026

yajo and others added 4 commits February 2, 2026 08:06
When a membership got cancelled and, later, restarted, we still had a cancellation date set, leading to the sensation that it was still cancelled.

With this refactor, when a cancellation date is earlier than a future start date, cancellation info is removed from the partner.

BTW I improved a few things:
- Removed old dead code that is no longer necessary in v16.
- Fix a test that was checking what happened when a membership line was cancelled before its start date. It seems a wrong use case because memberships are only supposed to be cancelled during the membership, and not before starting it.
- Free members need to be considered members too.
- Migration script.

@moduon MT-8237
Before this fix, when creating many memberships at once, only the last one was really created.

@moduon MT-8237
…ast start

93c8e75 was supposed to fix OCA#126 but in reality the problem was the misunderstanding of the feature.

Here I'm reverting that commit and changing the help attribute of the fields to be more clear when explaining what each one means. The feature is now tested.

The details are explained in OCA#190 (comment) (option A).

Fixes OCA#190
@moduon MT-8237
@yajo yajo marked this pull request as ready for review February 2, 2026 10:03
Copy link

@fcvalgar fcvalgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional review.

LGTM, thank you @yajo.

Image

@rafaelbn rafaelbn added this to the 18.0 milestone Feb 3, 2026
@yajo yajo requested a review from chienandalu February 5, 2026 10:38
@yajo yajo force-pushed the oca-port-membership_extension-16.0-to-18.0-4a0067 branch from 9738254 to 22948e6 Compare February 5, 2026 10:58
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-215-by-chienandalu-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d8e3f56 into OCA:18.0 Feb 5, 2026
11 checks passed
@OCA-git-bot
Copy link
Contributor

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

@yajo yajo deleted the oca-port-membership_extension-16.0-to-18.0-4a0067 branch February 10, 2026 09:09
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.

5 participants