fix(minor): translation string encoding in quality_procedure.py

This commit is contained in:
Rushabh Mehta 2020-10-27 18:38:44 +05:30
parent cf1428904a
commit 12a2e51e20

View File

@ -47,7 +47,7 @@ class QualityProcedure(NestedSet):
# Check if any child process belongs to another parent.
parent_quality_procedure = frappe.db.get_value("Quality Procedure", process.procedure, "parent_quality_procedure")
if parent_quality_procedure and parent_quality_procedure != self.name:
frappe.throw(_("{0} already has a Parent Procedure {1}.".format(frappe.bold(process.procedure), frappe.bold(parent_quality_procedure))),
frappe.throw(_("{0} already has a Parent Procedure {1}.").format(frappe.bold(process.procedure), frappe.bold(parent_quality_procedure)),
title=_("Invalid Child Procedure"))
@frappe.whitelist()