Merge pull request #19815 from Mangesh-Khairnar/publish-item

feat(marketplace): allow user to un-publish item
This commit is contained in:
Deepesh Garg
2019-12-28 17:52:49 +05:30
committed by GitHub
7 changed files with 117 additions and 36 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 not frappe.db.a_row_exists("Hub Tracked Item"):
return
frappe.db.sql('''
Update `tabHub Tracked Item`
SET published = 1
''')