-
- Downloads
[FIX] membership: fix state computing
Reproduce this bug:
- Install Contacts & Members app
- Create a Membership product
- Go on any contact, in the membership tab then buy membership
The "current membership status" should use the first valid line.
When you cancel a membership line, the current membership status is
always on "cancelled".
Causes:
- The `_compute_state` state method is not fetching the credits notes
correctly.
- The `break` statement is at the wrong place.
OPW-2093825
closes odoo/odoo#39803
Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Please register or sign in to comment