From bced6a07b4e1d9e3261703d6d31667b3b19609cf Mon Sep 17 00:00:00 2001 From: marination Date: Fri, 27 May 2022 22:06:12 +0530 Subject: [PATCH] fix: (auto-merge) Use `frappe.log_error` instead of `doc.log_error` - The latter is only on develop --- .../manufacturing/doctype/bom_update_log/bom_updation_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/bom_update_log/bom_updation_utils.py b/erpnext/manufacturing/doctype/bom_update_log/bom_updation_utils.py index 790a79b3333..93a15deb154 100644 --- a/erpnext/manufacturing/doctype/bom_update_log/bom_updation_utils.py +++ b/erpnext/manufacturing/doctype/bom_update_log/bom_updation_utils.py @@ -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})