Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
6facaaa9
Commit
6facaaa9
authored
May 25, 2024
by
Odoo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments in lacagette_membership resp_partner model
parent
d28f4b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
res_partner.py
lacagette_addons/lacagette_membership/models/res_partner.py
+6
-3
No files found.
lacagette_addons/lacagette_membership/models/res_partner.py
View file @
6facaaa9
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment