Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
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
2
Merge Requests
2
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
third-party
Commits
0ea9b280
Commit
0ea9b280
authored
Nov 24, 2021
by
François
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unsubscribe bug in is_comite fn
parent
8a35c6c2
Pipeline
#1551
passed with stage
in 1 minute 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
models.py
members_space/models.py
+4
-4
No files found.
members_space/models.py
View file @
0ea9b280
...
...
@@ -17,15 +17,15 @@ class CagetteMembersSpace(models.Model):
cond
=
[[
'partner_id.id'
,
'='
,
partner_id
]]
fields
=
[
'shift_template_id'
,
'is_current'
]
shiftTemplate
=
self
.
o_api
.
search_read
(
'shift.template.registration'
,
cond
,
fields
)
answer
=
False
if
(
shiftTemplate
and
len
(
shiftTemplate
)
>
0
):
s_t_id
=
None
for
s_t
in
shiftTemplate
:
if
s_t
[
'is_current'
]
is
True
:
s_t_id
=
s_t
[
'shift_template_id'
][
0
]
if
s_t_id
==
CagetteServices
.
get_committees_shift_id
():
return
True
else
:
return
False
if
s_t_id
==
CagetteServices
.
get_committees_shift_id
():
answer
=
True
return
answer
def
get_shifts_history
(
self
,
partner_id
,
limit
,
offset
,
date_from
):
""" Get partner shifts history """
...
...
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