fix: (auto-merge) Use frappe.log_error instead of doc.log_error

- The latter is only on develop
This commit is contained in:
marination
2022-05-27 22:06:12 +05:30
parent 6d65e2bab4
commit bced6a07b4

View File

@@ -251,5 +251,5 @@ def handle_exception(doc: "BOMUpdateLog") -> None:
"Rolls back and fails BOM Update Log."
frappe.db.rollback()
error_log = doc.log_error("BOM Update Tool Error")
error_log = frappe.log_error(title=_("BOM Update Tool Error"))
set_values_in_log(doc.name, {"status": "Failed", "error_log": error_log.name})