From b4001046d5378cae13fda125600bb9390a3016df Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 14 Nov 2017 15:28:08 +0530 Subject: [PATCH] [fix] customize_form.py https://discuss.erpnext.com/t/delivery-note-appears-as-delivery-chalan-on-erpnext-cloud/30589 --- frappe/custom/doctype/customize_form/customize_form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/custom/doctype/customize_form/customize_form.py b/frappe/custom/doctype/customize_form/customize_form.py index f3eede9397..abcccd1070 100644 --- a/frappe/custom/doctype/customize_form/customize_form.py +++ b/frappe/custom/doctype/customize_form/customize_form.py @@ -108,7 +108,7 @@ class CustomizeForm(Document): '''Create, update custom translation for this doctype''' current = self.get_name_translation() if current: - if self.label and current!=self.label: + if self.label and current.target_name != self.label: frappe.db.set_value('Translation', current.name, 'target_name', self.label) frappe.translate.clear_cache() else: