Commit 6facaaa9 by Odoo

Add comments in lacagette_membership resp_partner model

parent d28f4b0d
...@@ -52,10 +52,13 @@ class CagetteResPartner(models.Model): ...@@ -52,10 +52,13 @@ class CagetteResPartner(models.Model):
target_status = fields.Selection( target_status = fields.Selection(
selection=TARGET_STATUS_SELECTION, default='') selection=TARGET_STATUS_SELECTION, default='')
# cooperative_state and working_state are declared here to fit LaCagette model use of membership states
# and take additionnal states into account
# functions to compute their values are defined here and set as LouveRespartner model ones (see the end of file)
cooperative_state = fields.Selection( cooperative_state = fields.Selection(
selection=EXTRA_COOPERATIVE_STATE_SELECTION, default='not_concerned', selection=EXTRA_COOPERATIVE_STATE_SELECTION, default='not_concerned',
store=True, compute='_compute_cooperative_state') store=True, compute='_compute_cooperative_state')
working_state = fields.Selection( working_state = fields.Selection(
selection=WORKING_STATE_SELECTION, string='Working State', store=True, selection=WORKING_STATE_SELECTION, string='Working State', store=True,
compute='_compute_working_state', help="This state depends on the" compute='_compute_working_state', help="This state depends on the"
...@@ -99,9 +102,9 @@ class CagetteResPartner(models.Model): ...@@ -99,9 +102,9 @@ class CagetteResPartner(models.Model):
if partner.date_delay_stop > current_datetime: if partner.date_delay_stop > current_datetime:
# There is Delay # There is Delay
state = 'delay' state = 'delay'
# elif partner.date_alert_stop > current_datetime: elif partner.date_alert_stop > current_datetime:
# Grace State # Grace State
# state = 'alert' state = 'alert'
else: else:
state = 'suspended' state = 'suspended'
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment