[cleanup] [minor] added webnotes.model.delete_doc (module)
This commit is contained in:
parent
b1ea6b1f66
commit
fea93d0f65
@ -10,9 +10,8 @@ def execute():
|
|||||||
rebuild_exploded_bom()
|
rebuild_exploded_bom()
|
||||||
|
|
||||||
def delete_doctypes():
|
def delete_doctypes():
|
||||||
from webnotes.model import delete_doc
|
webnotes.delete_doc("DocType", "Production Control")
|
||||||
delete_doc("DocType", "Production Control")
|
webnotes.delete_doc("DocType", "BOM Control")
|
||||||
delete_doc("DocType", "BOM Control")
|
|
||||||
|
|
||||||
|
|
||||||
def rename_module():
|
def rename_module():
|
||||||
|
@ -3,11 +3,10 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
from webnotes.model import delete_doc
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
# remove doctypes
|
# remove doctypes
|
||||||
for dt in ["Period", "Account Balance", "Multi Ledger Report",
|
for dt in ["Period", "Account Balance", "Multi Ledger Report",
|
||||||
"Multi Ledger Report Detail", "Period Control", "Reposting Tool",
|
"Multi Ledger Report Detail", "Period Control", "Reposting Tool",
|
||||||
"Lease Agreement", "Lease Installment"]:
|
"Lease Agreement", "Lease Installment"]:
|
||||||
delete_doc("DocType", dt)
|
webnotes.delete_doc("DocType", dt)
|
Loading…
x
Reference in New Issue
Block a user