Reset values in tools like Payment Tool

This commit is contained in:
Nabin Hait
2015-06-05 12:01:29 +05:30
parent 6262496e70
commit 0b18a2d347
14 changed files with 53 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
for dt in ["Payment Tool", "Bank Reconciliation", "Payment Reconciliation", "Leave Control Panel",
"Salary Manager", "Upload Attenadance", "Production Planning Tool", "BOM Replace Tool"]:
frappe.db.sql("delete from `tabSingles` where doctype=%s", dt)