Im trying send an email from the Sales order form with the sales order custom print format. But its showing following error
"TypeError: attach_print() got an unexpected keyword argument 'html'"
When i try with no attachment the mail goes through. please help me out thanks.
### App Versions
{
“automobile_sales”: “0.0.1”,
“erpnext”: “14.0.0-dev”,
“frappe”: “15.0.0-dev”,
“hrms”: “1.0.0”
}
### Route
Form/Email Queue/75
### Trackeback
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 56, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 53, in handle
return _RESTAPIHandler(call, doctype, name).get_response()
File “apps/frappe/frappe/api.py”, line 69, in get_response
return self.handle_method()
File “apps/frappe/frappe/api.py”, line 79, in handle_method
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 45, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1589, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 378, in send_now
record.send()
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 135, in send
message = ctx.build_message(recipient.recipient)
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 294, in build_message
message = self.include_attachments(message)
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 353, in include_attachments
print_format_file = frappe.attach_print(**attachment)
TypeError: attach_print() got an unexpected keyword argument ‘html’
### Request Data
{
“type”: “POST”,
“args”: {
“name”: 75
},
“btn”: {
“0”: {},
“length”: 1
},
“headers”: {},
“error_handlers”: {},
“url”: “/api/method/frappe.email.doctype.email_queue.email_queue.send_now”
}
### Response Data
{
“exception”: “TypeError: attach_print() got an unexpected keyword argument ‘html’”
}