From 5a344576b84c4451048ef7922399d91ba6c62169 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 15 Dec 2017 13:14:36 +0530 Subject: [PATCH] [minor] Address fix (#12025) --- 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 24d63e6fd8..9c2545b39c 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -74,7 +74,7 @@ class Customer(TransactionBase): self.db_set('email_id', self.email_id) def create_primary_address(self): - if self.flags.is_new_doc and self.get('address_line_1'): + if self.flags.is_new_doc and self.get('address_line1'): make_address(self) def update_lead_status(self):