Commit 6facaaa9 by Odoo

Add comments in lacagette_membership resp_partner model

parent d28f4b0d
......@@ -52,10 +52,13 @@ class CagetteResPartner(models.Model):
target_status = fields.Selection(
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(
selection=EXTRA_COOPERATIVE_STATE_SELECTION, default='not_concerned',
store=True, compute='_compute_cooperative_state')
working_state = fields.Selection(
selection=WORKING_STATE_SELECTION, string='Working State', store=True,
compute='_compute_working_state', help="This state depends on the"
......@@ -99,9 +102,9 @@ class CagetteResPartner(models.Model):
if partner.date_delay_stop > current_datetime:
# There is Delay
state = 'delay'
# elif partner.date_alert_stop > current_datetime:
elif partner.date_alert_stop > current_datetime:
# Grace State
# state = 'alert'
state = 'alert'
else:
state = 'suspended'
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