From fb7317bf59237a01067d3371ad55914fc3a1fea8 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 30 Jul 2013 16:36:38 +0530 Subject: [PATCH] [fix] [minor] [issue] webnotes/erpnext#665 - set owner in create_new.py --- webnotes/model/create_new.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webnotes/model/create_new.py b/webnotes/model/create_new.py index a7f064e438..0d4a431f3e 100644 --- a/webnotes/model/create_new.py +++ b/webnotes/model/create_new.py @@ -10,7 +10,8 @@ import webnotes.defaults def get_new_doc(doctype, parent_doc = None, parentfield = None): doc = webnotes.doc({ "doctype": doctype, - "__islocal": 1 + "__islocal": 1, + "owner": webnotes.session.user }) meta = webnotes.get_doctype(doctype)