Merge branch 'master' of github.com:webnotes/wnframework

This commit is contained in:
Rushabh Mehta 2013-07-30 17:22:20 +05:30
commit a1382ddbd7

View file

@ -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)