From 12aeb0a733a6c30446ccbed4d10c70fb2ebdccb3 Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Thu, 11 Apr 2024 16:19:18 +0200 Subject: [PATCH] fix: Create contact for all customer types --- erpnext/selling/doctype/customer/customer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index c9e671daf0c..1e76fe122f7 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -247,9 +247,7 @@ class Customer(TransactionBase): ) def create_primary_contact(self): - if ( - not self.customer_primary_contact and not self.lead_name and self.customer_type == "Individual" - ): + if not self.customer_primary_contact and not self.lead_name: if self.mobile_no or self.email_id: contact = make_contact(self) self.db_set("customer_primary_contact", contact.name) -- GitLab