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
300bc6a4
Commit
300bc6a4
authored
Jun 02, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify sent data to allow handle setting for external login
parent
4827eed4
Pipeline
#2225
passed with stage
in 1 minute 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
models.py
members/models.py
+2
-1
No files found.
members/models.py
View file @
300bc6a4
...
...
@@ -138,7 +138,7 @@ class CagetteMember(models.Model):
cond
.
append
([
'is_member'
,
'='
,
True
])
cond
.
append
([
'is_associated_people'
,
'='
,
True
])
fields
=
[
'name'
,
'email'
,
'birthdate'
,
'create_date'
,
'cooperative_state'
,
'is_associated_people'
]
fields
=
[
'name'
,
'email'
,
'birthdate'
,
'create_date'
,
'cooperative_state'
,
'is_associated_people'
,
'barcode_base'
]
res
=
api
.
search_read
(
'res.partner'
,
cond
,
fields
)
if
(
res
and
len
(
res
)
>=
1
):
coop_id
=
None
...
...
@@ -169,6 +169,7 @@ class CagetteMember(models.Model):
data
[
'firstname'
]
=
name_elts
[
'firstname'
]
else
:
data
[
'firstname'
]
=
''
data
[
'coop_num'
]
=
coop
[
'barcode_base'
]
if
not
(
'auth_token'
in
data
):
data
[
'failure'
]
=
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