[patch] restore defaults
This commit is contained in:
parent
19f2396f95
commit
3525481823
0
patches/july_2013/__init__.py
Normal file
0
patches/july_2013/__init__.py
Normal file
3
patches/july_2013/restore_tree_roots.py
Normal file
3
patches/july_2013/restore_tree_roots.py
Normal file
@ -0,0 +1,3 @@
|
||||
def execute():
|
||||
from startup.install import import_defaults
|
||||
import_defaults()
|
@ -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()
|
Loading…
x
Reference in New Issue
Block a user