From fea93d0f65e5b936ae4e41d2aefdf1c6d1e8f07d Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 27 Nov 2013 14:34:02 +0530 Subject: [PATCH] [cleanup] [minor] added webnotes.model.delete_doc (module) --- patches/december_2012/production_cleanup.py | 5 ++--- patches/september_2012/deprecate_account_balance.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/patches/december_2012/production_cleanup.py b/patches/december_2012/production_cleanup.py index 9065666e1a6..b8133a90d53 100644 --- a/patches/december_2012/production_cleanup.py +++ b/patches/december_2012/production_cleanup.py @@ -10,9 +10,8 @@ def execute(): rebuild_exploded_bom() def delete_doctypes(): - from webnotes.model import delete_doc - delete_doc("DocType", "Production Control") - delete_doc("DocType", "BOM Control") + webnotes.delete_doc("DocType", "Production Control") + webnotes.delete_doc("DocType", "BOM Control") def rename_module(): diff --git a/patches/september_2012/deprecate_account_balance.py b/patches/september_2012/deprecate_account_balance.py index 1f5ce723052..d39f82cb55e 100644 --- a/patches/september_2012/deprecate_account_balance.py +++ b/patches/september_2012/deprecate_account_balance.py @@ -3,11 +3,10 @@ from __future__ import unicode_literals import webnotes -from webnotes.model import delete_doc def execute(): # remove doctypes for dt in ["Period", "Account Balance", "Multi Ledger Report", "Multi Ledger Report Detail", "Period Control", "Reposting Tool", "Lease Agreement", "Lease Installment"]: - delete_doc("DocType", dt) \ No newline at end of file + webnotes.delete_doc("DocType", dt) \ No newline at end of file