From 16ae0849d4821b9569fa0f4238e012dbcafbab38 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 fdf0f5fa99e..564b600110c 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -246,9 +246,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