chore: used frappe.delete_doc_if_exists

This commit is contained in:
Anurag Mishra
2019-04-22 14:54:31 +05:30
parent 4f16d17d21
commit 7bdd27f7e2

View File

@@ -5,4 +5,4 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.db.sql(""" Delete from `tabPage` where name='bom-browser' """)
frappe.delete_doc_if_exists('Page', 'bom-browser')