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
3e2d5310
Commit
3e2d5310
authored
Apr 15, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error
parent
66e5be54
Pipeline
#2116
passed with stage
in 1 minute 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
admin.py
members/admin.py
+3
-4
No files found.
members/admin.py
View file @
3e2d5310
...
@@ -556,10 +556,9 @@ def get_member_info(request, id):
...
@@ -556,10 +556,9 @@ def get_member_info(request, id):
member
=
member
[
0
]
member
=
member
[
0
]
parent
=
None
parent
=
None
if
member
[
'parent_id'
]:
if
member
[
'parent_id'
]:
parent_barcode_base
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
int
(
member
[
'parent_id'
][
0
])]],
[
'barcode_base'
])[
0
]
parent
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
int
(
member
[
'parent_id'
][
0
])]],
[
'barcode_base'
,
'email'
])[
0
]
member
[
'parent_barcode_base'
]
=
parent_barcode_base
[
'barcode_base'
]
member
[
'parent_barcode_base'
]
=
parent
[
'barcode_base'
]
parent_email
=
api
.
search_read
(
'res.partner'
,
[[
'id'
,
'='
,
int
(
member
[
'parent_id'
][
0
])]],
[
'email'
])[
0
]
member
[
'parent_email'
]
=
parent
[
'email'
]
member
[
'parent_email'
]
=
parent_email
[
'email'
]
res
[
'member'
]
=
member
res
[
'member'
]
=
member
response
=
JsonResponse
(
res
)
response
=
JsonResponse
(
res
)
else
:
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