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
deae61cc
Commit
deae61cc
authored
Oct 07, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log errors raised while export_orders process
parent
cdb288c9
Pipeline
#2415
passed with stage
in 1 minute 26 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
models.py
orders/models.py
+1
-0
views.py
outils/views.py
+1
-0
No files found.
orders/models.py
View file @
deae61cc
...
@@ -362,6 +362,7 @@ class Orders(models.Model):
...
@@ -362,6 +362,7 @@ class Orders(models.Model):
res
=
o_api
.
execute
(
'purchase.order'
,
'get_received_orders_between_dates'
,
[],
params
)
res
=
o_api
.
execute
(
'purchase.order'
,
'get_received_orders_between_dates'
,
[],
params
)
except
Exception
as
e
:
except
Exception
as
e
:
res
[
"error"
]
=
str
(
e
)
res
[
"error"
]
=
str
(
e
)
coop_logger
.
error
(
'get_orders_between_dates :
%
s'
,
str
(
e
))
return
res
return
res
...
...
outils/views.py
View file @
deae61cc
...
@@ -427,4 +427,5 @@ class ExportOrders(View):
...
@@ -427,4 +427,5 @@ class ExportOrders(View):
return
response
return
response
except
Exception
as
e
:
except
Exception
as
e
:
error
=
"Une erreur est survenue, merci de contacter le service informatique."
error
=
"Une erreur est survenue, merci de contacter le service informatique."
coop_logger
.
error
(
"Erreur export_orders :
%
s"
,
str
(
e
))
return
JsonResponse
({
'erreur'
:
error
,
'details'
:
str
(
e
)})
return
JsonResponse
({
'erreur'
:
error
,
'details'
:
str
(
e
)})
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