Bonjour,
Une fois les articles réglés dans le point de vente, on peut envoyer le ticket par email :
Quand je tente l’envoi, j’ai le message d’erreur suivant:
App Versions
{
"erpnext": "3.25.0",
"frappe": "3.25.0",
"payments": "1.1.2"
}
Route
point-of-sale
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 66, 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 47, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1601, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/core/doctype/communication/email.py", line 78, in make
return _make(
File "apps/frappe/frappe/core/doctype/communication/email.py", line 176, in _make
comm.send_email(
File "apps/frappe/frappe/core/doctype/communication/mixins.py", line 296, in send_email
if input_dict := self.sendmail_input_dict(
File "apps/frappe/frappe/core/doctype/communication/mixins.py", line 275, in sendmail_input_dict
"content": self.get_content(print_format=print_format),
File "apps/frappe/frappe/core/doctype/communication/mixins.py", line 137, in get_content
return self.content + self.get_attach_link(print_format)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Request Data
{
"type": "POST",
"args": {
"recipients": "burloty@gmail.com",
"subject": "Facture de point de vente: ACC-PSINV-2023-00010",
"doctype": "POS Invoice",
"name": "ACC-PSINV-2023-00010",
"send_email": 1,
"print_format": "POS Invoice",
"sender_full_name": "Administrator",
"_lang": "fr"
},
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.core.doctype.communication.email.make"
}
Response Data
{
"exception": "TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'"
}