patch: set published in hub track item

This commit is contained in:
Mangesh-Khairnar
2019-12-24 17:45:57 +05:30
parent 7a5b9a7bbe
commit 0143f7c59d
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc("Hub Node", "doctype", "Hub Tracked Item")
if frappe.db.a_row_exists("Hub Tracked Item"):
return
frappe.db.sql('''
Update `tabHub Tracked Item`
SET published = 1
''')