summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/sample_server.js
diff options
context:
space:
mode:
authorBaptiste Vergote <bve@odoo.com>2020-07-23 12:44:52 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-08-12 07:25:28 +0000
commit90e0abb413e48074ca6a6698af56c33d4b68a50d (patch)
treefbc37455403dd2daf95388d6d7d6be09e1071d75 /addons/web/static/src/js/views/sample_server.js
parentb37e4c97f96ba91809cb4b276638cc591ce214a0 (diff)
[FIX] membership: fix state computing for non paid invoice
Having a non paid membership for last year and being associate with someone having a non paid membership was dispalying an 'old' membership state instead if a 'non' membership. Assumption: If an associate member is added, take the state of the associate member (tooltip of associate member). In case the associate member is a 'non member', it's stupid to associate with someone that is paying or have paid as it won't consider the state of the current paid member, the link has to be made on the other side: the 'non' paying will be associate with the 'paid'. Create membership for a/ 2019 (1jan to 31dec) > For the calculation of the 'old' state b/ 2020 (1jan to 31dec) > For the calculation of the 'paid' state Create few res.partner: AA: No associate. 2019 - Paid 2020 - Paid >> Paid member (= ok) CC Case 1: Associate with AA 2019 - Invoiced (but not paid) 2020 - None >> Paid member due to association with AA (= ok) CC Case 2: Not associate: 2019 - Invoiced (but not paid) 2020 - None >> Before fix: Old member (= nok) >> After fix: Non member (= ok) As he never paid and not linked to someone that paid. DD: Associate with AA 2019 - Invoiced not paid 2020 - Paid >> Paid member (with or without association with AA) (= ok) EE Case 1: Not associate: 2019 - Paid 2020 - None >> Old member (= ok) Case 2: Associate with DD 2019 - Invoiced (not paid) 2020 - None >> Paid member (due to association with DD) (= ok) Case 3: Associate with CC 2019 - Invoiced (not paid) 2020 - None >> Before fix: Old member (due to none having a current 2020 invoiced) (= nok it should take the state of CC) >> After fix: Non member (as CC is not a member) opw-2287050 closes odoo/odoo#55773 X-original-commit: 5e7b7b0a645bcff175bf8d2483eae5ffd4aaf89b Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/sample_server.js')
0 files changed, 0 insertions, 0 deletions