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
81e79035
Commit
81e79035
authored
Jan 09, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7412 : set suppleant_member_id to None in delete_pair_core
parent
c1486cb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
admin.py
members/admin.py
+1
-1
No files found.
members/admin.py
View file @
81e79035
...
@@ -1009,7 +1009,7 @@ def delete_pair_core(data):
...
@@ -1009,7 +1009,7 @@ def delete_pair_core(data):
child_contact
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
child_contact_id
]],
[
'email'
,
'id'
,
'parent_id'
,
'suppleant_member_id'
])[
0
]
child_contact
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
child_contact_id
]],
[
'email'
,
'id'
,
'parent_id'
,
'suppleant_member_id'
])[
0
]
parent
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
child_contact
[
'parent_id'
][
0
]]],
[
'cooperative_state'
])[
0
]
parent
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
child_contact
[
'parent_id'
][
0
]]],
[
'cooperative_state'
])[
0
]
api
.
update
(
'res.partner'
,
[
child_contact_id
],
{
"parent_id"
:
False
,
"is_associated_people"
:
False
,
"active"
:
False
,
api
.
update
(
'res.partner'
,
[
child_contact_id
],
{
"parent_id"
:
False
,
"is_associated_people"
:
False
,
"active"
:
False
,
"is_former_associated_people"
:
True
})
"is_former_associated_people"
:
True
,
"suppleant_member_id"
:
None
})
child_member_update_fields
=
{
'cooperative_state'
:
"unsubscribed"
,
"is_former_associated_people"
:
True
}
child_member_update_fields
=
{
'cooperative_state'
:
"unsubscribed"
,
"is_former_associated_people"
:
True
}
if
'gone'
in
data
and
'child'
in
data
[
'gone'
]:
if
'gone'
in
data
and
'child'
in
data
[
'gone'
]:
child_member_update_fields
[
'cooperative_state'
]
=
"gone"
child_member_update_fields
[
'cooperative_state'
]
=
"gone"
...
...
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