[16.0][IMP] membership_variable_period: enable membership renewal#205
[16.0][IMP] membership_variable_period: enable membership renewal#205
Conversation
|
functional tests Backend and logic
POS UI [waiting for deployment before testing]
|
|
@OCA/vertical-association-maintainers Can you take a look at this PR? |
|
@pedrobaeza Hi Pedro, could you take a look at this? Our PR is awaiting approval :-) |
|
/ocabot migration membership_variable_period Hi, a PSC should review this PR to get it merged. https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#review I'm not able to review right now, sorry. |
5c67025 to
0a16875
Compare
0a16875 to
a20eae1
Compare
|
This PR has the |
|
This is not a migration but a improvement / enhancement What do you think about this @fcvalgar @Andrii9090 @chienandalu ? |
chienandalu
left a comment
There was a problem hiding this comment.
Thanks @flaenen
I'm not sure I quite understand the context or use case for this changes. Can you elaborate it a little bit?
| _inherit = "account.move.line" | ||
|
|
||
| def _prepare_membership_line(self, move, product, price_unit, line_id, qty=1.0): | ||
| def _prepare_membership_line(self, move, product, price_unit, line, qty=1.0): |
There was a problem hiding this comment.
I'm not against changing this arg type, but doing so in stable code could break someone else extensions...
It also makes the commit meaningful content more difficult to follow.
There was a problem hiding this comment.
I will modify the code to keep the arg type.
In our use case, a customer can become a member for one year by purchasing a membership product (usually via POS). Membership begins on the date of purchase and can be renewed before expiration by purchasing the product again. Renewal must begin the day after the end of the current period (not the day of purchase) to avoid overlapping periods, ensuring that the customer receives a full additional year of membership. |
A member's membership is renewed when a new variable period membership product of the same category is purchased. The new period will begin the day after the end of the last period.
a20eae1 to
da1ce9c
Compare
@OCA/vertical-association-maintainers do think this can now be merged? thanks a lot for taking a final look :-) |
A member's membership is now renewed when a new variable period membership product of the same category is purchased. The new period will begin the day after the end of the last period.