Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Arturo Jasso Origel
/
helpdesk
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b032edaf
authored
Apr 10, 2023
by
Arturo Jasso Origel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se agrego una corección y unos logger de seguimiento
parent
e65217a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
helpdesk_morsa/controllers/portal_soporte.py
+5
-1
No files found.
helpdesk_morsa/controllers/portal_soporte.py
View file @
b032edaf
...
...
@@ -403,10 +403,12 @@ class PortalHelpdeskMorsaSoporte(PortalHelpdesk):
if
'portal_file'
in
request
.
params
:
attached_files
=
request
.
httprequest
.
files
.
getlist
(
'portal_file'
)
_logger
.
info
(
attached_files
)
attachment_ids
=
[]
for
attachment
in
attached_files
:
_logger
.
info
(
attachment
)
result
=
base64
.
b64encode
(
attachment
.
read
())
attachment_id
=
request
.
env
[
'ir.attachment'
]
.
sudo
(
)
.
create
({
'name'
:
attachment
.
filename
,
...
...
@@ -415,7 +417,9 @@ class PortalHelpdeskMorsaSoporte(PortalHelpdesk):
'display_name'
:
attachment
.
filename
,
'datas'
:
result
,
})
_logger
.
info
(
attachment_id
)
attachment_ids
.
append
(
attachment_id
.
id
)
_logger
.
info
(
attachment_ids
)
ticket_id
.
attachment_ids
=
[(
6
,
0
,
attachment_ids
)]
...
...
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