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
7efbf85d
Commit
7efbf85d
authored
Mar 10, 2022
by
Etienne Freiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modif typo
parent
a7f142e4
Pipeline
#1898
passed with stage
in 1 minute 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
models.py
members/models.py
+2
-2
No files found.
members/models.py
View file @
7efbf85d
...
@@ -1207,7 +1207,7 @@ class CagetteServices(models.Model):
...
@@ -1207,7 +1207,7 @@ class CagetteServices(models.Model):
for
m
in
s
[
'members'
]:
for
m
in
s
[
'members'
]:
mids
.
append
(
m
[
'partner_id'
][
0
])
mids
.
append
(
m
[
'partner_id'
][
0
])
cond
=
[[
'parent_id'
,
'in'
,
mids
]]
cond
=
[[
'parent_id'
,
'in'
,
mids
]]
fields
=
[
'id'
,
'parent_id'
,
'name'
]
fields
=
[
'id'
,
'parent_id'
,
'name'
,
'barcode_base'
]
associated
=
api
.
search_read
(
'res.partner'
,
cond
,
fields
)
associated
=
api
.
search_read
(
'res.partner'
,
cond
,
fields
)
if
len
(
associated
)
>
0
:
if
len
(
associated
)
>
0
:
...
@@ -1216,7 +1216,7 @@ class CagetteServices(models.Model):
...
@@ -1216,7 +1216,7 @@ class CagetteServices(models.Model):
if
int
(
a
[
'parent_id'
][
0
])
==
int
(
m
[
'partner_id'
][
0
]):
if
int
(
a
[
'parent_id'
][
0
])
==
int
(
m
[
'partner_id'
][
0
]):
m
[
'partner_name'
]
=
m
[
'partner_id'
][
1
]
m
[
'partner_name'
]
=
m
[
'partner_id'
][
1
]
m
[
'partner_id'
][
1
]
+=
' en binôme avec '
+
a
[
'name'
]
m
[
'partner_id'
][
1
]
+=
' en binôme avec '
+
a
[
'name'
]
m
[
'associate_name'
]
=
str
(
a
[
'
id
'
])
+
' - '
+
a
[
'name'
]
m
[
'associate_name'
]
=
str
(
a
[
'
barcode_base
'
])
+
' - '
+
a
[
'name'
]
return
services
return
services
...
...
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