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
8e1fb25c
Commit
8e1fb25c
authored
Jan 23, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_shift_template_registration_ids method and usage fixes
parent
d985e9e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
models.py
members/models.py
+3
-3
No files found.
members/models.py
View file @
8e1fb25c
...
...
@@ -1082,14 +1082,14 @@ class CagetteMember(models.Model):
def
get_shift_template_registration_ids
(
self
):
c
=
[[
'partner_id'
,
'='
,
self
.
id
]]
f
=
[
'id'
]
return
self
.
o_api
.
search_read
(
"shift.template.registration"
,
c
,
f
)
return
[
x
[
'id'
]
for
x
in
self
.
o_api
.
search_read
(
"shift.template.registration"
,
c
,
f
)]
def
unsubscribe_member_but_exogenous_makeups
(
self
):
return
self
.
o_api
.
execute
(
'shift.template.registration'
,
'unlink_but_exogenous_makeups'
,
[
self
.
get_shift_template_registration_ids
()]
self
.
get_shift_template_registration_ids
()
)
...
...
@@ -1097,7 +1097,7 @@ class CagetteMember(models.Model):
return
self
.
o_api
.
execute
(
'shift.template.registration'
,
'unlink'
,
[
self
.
get_shift_template_registration_ids
()]
self
.
get_shift_template_registration_ids
()
)
def
set_cooperative_state
(
self
,
state
):
...
...
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