mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
patch: set published in hub track item
This commit is contained in:
12
erpnext/patches/v12_0/set_published_in_hub_tracked_item.py
Normal file
12
erpnext/patches/v12_0/set_published_in_hub_tracked_item.py
Normal 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
|
||||
''')
|
||||
Reference in New Issue
Block a user