From 29d36a6cea587d8870f66a9fb8812691588a0694 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 4 May 2012 16:20:30 +0530 Subject: [PATCH] fixes in account setup --- erpnext/setup/doctype/setup_control/setup_control.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/setup_control/setup_control.py b/erpnext/setup/doctype/setup_control/setup_control.py index d5832c4e03..bcdd0938da 100644 --- a/erpnext/setup/doctype/setup_control/setup_control.py +++ b/erpnext/setup/doctype/setup_control/setup_control.py @@ -81,7 +81,12 @@ class DocType: # Set self.set_defaults(def_args) - self.set_cp_defaults(**args) + + cp_args = {} + for k in ['industry', 'country', 'timezone', 'company_name']: + cp_args[k] = args[k] + + self.set_cp_defaults(**cp_args) self.create_feed_and_todo()