brotherton-erpnext/erpnext/patches/v7_2/delete_fleet_management_module_def.py

10 lines
346 B
Python
Raw Normal View History

2017-01-09 06:04:58 +00:00
# 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'""")