Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
78565260
Commit
78565260
authored
Dec 18, 2017
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EmailDocument: only look for attachment in _getMessage
parent
3c206c22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/Document/EmailDocument.py
product/ERP5/Document/EmailDocument.py
+2
-1
No files found.
product/ERP5/Document/EmailDocument.py
View file @
78565260
...
@@ -167,13 +167,14 @@ class EmailDocument(TextDocument):
...
@@ -167,13 +167,14 @@ class EmailDocument(TextDocument):
data
=
self
.
getData
()
data
=
self
.
getData
()
if
not
data
:
if
not
data
:
# Generated a mail message temporarily to provide backward compatibility.
# Generated a mail message temporarily to provide backward compatibility.
document_type_list
=
list
(
self
.
getPortalEmbeddedDocumentTypeList
())
+
list
(
self
.
getPortalDocumentTypeList
())
data
=
self
.
Base_createMailMessageAsString
(
data
=
self
.
Base_createMailMessageAsString
(
from_url
=
'from@example.com'
,
from_url
=
'from@example.com'
,
to_url
=
'to@example.com'
,
to_url
=
'to@example.com'
,
subject
=
self
.
getTitle
()
or
''
,
subject
=
self
.
getTitle
()
or
''
,
body
=
self
.
getTextContent
()
or
''
,
body
=
self
.
getTextContent
()
or
''
,
content_type
=
self
.
getContentType
(),
content_type
=
self
.
getContentType
(),
embedded_file_list
=
self
.
getAggregateValueList
(),
embedded_file_list
=
self
.
getAggregateValueList
(
portal_type
=
document_type_list
),
)
)
result
=
message_from_string
(
data
)
result
=
message_from_string
(
data
)
self
.
_v_message
=
result
self
.
_v_message
=
result
...
...
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