-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][membership_extension] 'membership_last_start' does not correctly reflect the start of the latest membership period after a break #190
Comments
I agree there is a problem here. There are 3 involved fields: vertical-association/membership_extension/models/res_partner.py Lines 38 to 61 in f19fdbc
According to my tests, I'll write the case that @fcvalgar explained as a table because I understand it better. These would be the memberships recorded in a partner:
☝🏼 notice the gap. Now, we have 2 possible solutions. Option A (this is the behavior we had before v16):
Option B would be:
Currently the behavior in v16 is this one (let's call it option C), which is effectively not much useful:
Why option C is not useful?
My vote goes for restoring option A. This makes the module more useful and keeps old known behavior. Do you agree? |
First of all, I want to express my gratitude to @yajo for taking the time and effort to analyze this issue and propose such a clear, well-founded solution. I greatly appreciate the initiative to revert to the logic prior to version 16, as it offered a more coherent and useful approach to the data. Regarding the options presented, I am fully in agreement with Option A, because:
This approach not only restores the familiar and useful behavior experienced before v16, but also provides a solid foundation for historical, statistical, and strategic analysis of the membership community. Once again, thank you, @yajo, for your proposal and for the thoughtful attention you’ve given to this matter. Your contribution is a valuable addition to improving the quality and utility of the module. |
Module
membership_extension
Describe the bug
It has been observed that the membership_last_start field does not accurately calculate the start date of the most recent membership period when there has been a break in membership. Instead of taking the start date of the new period following the gap, the field appears to rely on the last active fee, resulting in inaccurate information about the continuity of the membership.
This issue makes it difficult to accurately analyze when a member has rejoined and can be considered "new" in a given period. The correct behavior should clearly identify the start date of the latest continuous membership period after any interruption, rather than carrying over outdated information.
References to Previous PRs:
Previous issue: #126
Migration to Odoo 16: #132
To Reproduce
Steps to reproduce the behavior:
Expected behavior
membership_last_start should be set to the actual start date of the latest continuous membership period following any break. In the example provided, it should properly reflect the late 2023 and 2024 memberships, offering a clear view of the member as “new” or returning during that period, thereby facilitating accurate analysis of membership base evolution.
Additional context
A fix to the membership_last_start calculation would help provide more reliable metrics, especially after the migration to Odoo 16 discussed in PR #132. Any suggestions or contributions from the community to resolve this issue are welcome.
@moduon MT-8237 @yajo
FYI @carmenbianca @chienandalu
The text was updated successfully, but these errors were encountered: