[patch] restore defaults

This commit is contained in:
Nabin Hait 2013-07-05 11:27:26 +05:30
parent 19f2396f95
commit 3525481823
3 changed files with 6 additions and 3 deletions

View File

View File

@ -0,0 +1,3 @@
def execute():
from startup.install import import_defaults
import_defaults()

View File

@ -176,6 +176,6 @@ def import_defaults():
]
for r in records:
doc = webnotes.doc(r)
doc.insert()
if not webnotes.conn.exists(r['doctype'], r['name']):
bean = webnotes.bean(r)
bean.insert()