Merge pull request #13698 from leela/fix-email-attachments
fix: sending document as an attachment through mail
This commit is contained in:
commit
ee1b27587d
1 changed files with 2 additions and 2 deletions
|
|
@ -176,8 +176,8 @@ class CommunicationEmailMixin:
|
|||
def mail_attachments(self, print_format=None, print_html=None):
|
||||
final_attachments = []
|
||||
|
||||
if print_format and print_html:
|
||||
d = {'print_format': print_format, 'print_html': print_html, 'print_format_attachment': 1,
|
||||
if print_format or print_html:
|
||||
d = {'print_format': print_format, 'html': print_html, 'print_format_attachment': 1,
|
||||
'doctype': self.reference_doctype, 'name': self.reference_name}
|
||||
final_attachments.append(d)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue