mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
[Fix] Special character issue while upadting customer group in customer (#14312)
This commit is contained in:
committed by
Nabin Hait
parent
2fa057e4ad
commit
ce642d73cb
@@ -79,7 +79,7 @@ class Customer(TransactionBase):
|
|||||||
def update_customer_groups(self):
|
def update_customer_groups(self):
|
||||||
ignore_doctypes = ["Lead", "Opportunity", "POS Profile", "Tax Rule", "Pricing Rule"]
|
ignore_doctypes = ["Lead", "Opportunity", "POS Profile", "Tax Rule", "Pricing Rule"]
|
||||||
if frappe.flags.customer_group_changed:
|
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)
|
self.customer_group, ignore_doctypes)
|
||||||
|
|
||||||
def create_primary_contact(self):
|
def create_primary_contact(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user