[minor] [fix] employee field while new sales person created from tree

This commit is contained in:
Nabin Hait
2013-07-22 17:15:01 +05:30
parent 50f5fd13c7
commit d351318014
2 changed files with 18 additions and 7 deletions

View File

@@ -30,4 +30,7 @@ def add_node():
parent_field: webnotes.form_dict['parent'],
"is_group": webnotes.form_dict['is_group']
}]
if ctype == "Sales Person":
doclist[0]["employee"] = webnotes.form_dict.get('employee')
webnotes.bean(doclist).save()