From ce642d73cb092618197fad03394b930a4ecb7654 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 1 Jun 2018 15:11:21 +0530 Subject: [PATCH] [Fix] Special character issue while upadting customer group in customer (#14312) --- erpnext/selling/doctype/customer/customer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index 7232fadb56..b17345c2e7 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -79,7 +79,7 @@ class Customer(TransactionBase): def update_customer_groups(self): ignore_doctypes = ["Lead", "Opportunity", "POS Profile", "Tax Rule", "Pricing Rule"] if frappe.flags.customer_group_changed: - update_linked_doctypes('Customer', self.name, 'Customer Group', + update_linked_doctypes('Customer', frappe.db.escape(self.name), 'Customer Group', self.customer_group, ignore_doctypes) def create_primary_contact(self):