brotherton-erpnext/erpnext/patches/v7_2/delete_fleet_management_module_def.py
2017-01-16 14:38:24 +05:30

10 lines
346 B
Python

# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
if frappe.db.exists('Module Def', 'Fleet Management'):
frappe.db.sql("""delete from `tabModule Def`
where module_name = 'Fleet Management'""")