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
d0b7d9b1
Commit
d0b7d9b1
authored
Nov 25, 2024
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7095 export compta : fix retrieve_odoo_coop_data to use id instead of barcode_base
parent
d42f6d4a
Pipeline
#3953
failed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
compta.py
outils/lib/compta.py
+4
-4
No files found.
outils/lib/compta.py
View file @
d0b7d9b1
...
@@ -176,14 +176,14 @@ def make_daily_full_sum_up(lines):
...
@@ -176,14 +176,14 @@ def make_daily_full_sum_up(lines):
def
retrieve_odoo_coop_data
(
coop_ids
):
def
retrieve_odoo_coop_data
(
coop_ids
):
api
=
OdooAPI
()
api
=
OdooAPI
()
fields
=
[
'name'
,
'barcode_base'
]
fields
=
[
'name'
,
'barcode_base'
,
'id'
]
cond
=
[[
'
barcode_base'
,
'in'
,
coop_ids
]]
cond
=
[[
'
id'
,
'in'
,
coop_ids
]]
coops
=
api
.
search_read
(
'res.partner'
,
cond
,
fields
,
3000
)
coops
=
api
.
search_read
(
'res.partner'
,
cond
,
fields
,
3000
)
coops_dict
=
{}
coops_dict
=
{}
for
coop
in
coops
:
for
coop
in
coops
:
if
not
(
str
(
coop
[
'
barcode_base
'
])
in
coops_dict
.
keys
()):
if
not
(
str
(
coop
[
'
id
'
])
in
coops_dict
.
keys
()):
coops_dict
[
str
(
coop
[
'
barcode_base
'
])]
=
\
coops_dict
[
str
(
coop
[
'
id
'
])]
=
\
str
(
coop
[
'barcode_base'
])
+
' - '
+
coop
[
'name'
]
.
replace
(
';'
,
''
)
str
(
coop
[
'barcode_base'
])
+
' - '
+
coop
[
'name'
]
.
replace
(
';'
,
''
)
return
coops_dict
return
coops_dict
...
...
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