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

@ -648,3 +648,4 @@ erpnext.patches.v12_0.set_default_for_add_taxes_from_item_tax_template
erpnext.patches.v12_0.remove_denied_leaves_from_leave_ledger
erpnext.patches.v12_0.update_price_or_product_discount
erpnext.patches.v12_0.set_production_capacity_in_workstation
erpnext.patches.v12_0.set_published_in_hub_tracked_item

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
''')