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
3
Merge Requests
3
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
ba534f93
Commit
ba534f93
authored
Feb 25, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unsubscribe parent from shift template before marking them gone during binom unpairing process
parent
f89645c8
Pipeline
#4141
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
admin.py
members/admin.py
+2
-0
No files found.
members/admin.py
View file @
ba534f93
...
...
@@ -938,4 +938,6 @@ def delete_pair_core(data):
child_member_update_fields
[
'cooperative_state'
]
=
"gone"
api
.
update
(
"res.partner"
,
[
child_contact
[
'suppleant_member_id'
]],
child_member_update_fields
)
if
'gone'
in
data
and
'parent'
in
data
[
'gone'
]:
cm
=
CagetteMember
(
parent
[
'id'
])
cm
.
unsubscribe_member
()
api
.
update
(
"res.partner"
,
[
parent
[
'id'
]],
{
'cooperative_state'
:
"gone"
,
"is_former_associated_people"
:
True
})
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