brotherton-erpnext/erpnext/patches/v9_0/remove_subscription_module.py
2017-09-15 16:16:36 +05:30

9 lines
306 B
Python

# Copyright (c) 2017, Frappe 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', 'Subscription'):
frappe.db.sql(""" delete from `tabModule Def` where name = 'Subscription'""")