[hub][patch] reset publish_in_hub for all items
This commit is contained in:
parent
19d40cafba
commit
6e7fb71f1f
@ -45,8 +45,8 @@
|
|||||||
"mapping_name": "Item to Hub Item",
|
"mapping_name": "Item to Hub Item",
|
||||||
"mapping_type": "Push",
|
"mapping_type": "Push",
|
||||||
"migration_id_field": "hub_sync_id",
|
"migration_id_field": "hub_sync_id",
|
||||||
"modified": "2018-02-14 15:57:05.595712",
|
"modified": "2018-07-27 21:52:52.383842",
|
||||||
"modified_by": "achilles@erpnext.com",
|
"modified_by": "cave@aperture.com",
|
||||||
"name": "Item to Hub Item",
|
"name": "Item to Hub Item",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"page_length": 10,
|
"page_length": 10,
|
||||||
|
@ -7,14 +7,10 @@
|
|||||||
{
|
{
|
||||||
"enabled": 1,
|
"enabled": 1,
|
||||||
"mapping": "Item to Hub Item"
|
"mapping": "Item to Hub Item"
|
||||||
},
|
|
||||||
{
|
|
||||||
"enabled": 1,
|
|
||||||
"mapping": "Hub Message to Lead"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modified": "2018-02-14 15:57:05.519715",
|
"modified": "2018-07-27 21:52:52.324025",
|
||||||
"modified_by": "achilles@erpnext.com",
|
"modified_by": "cave@aperture.com",
|
||||||
"module": "Hub Node",
|
"module": "Hub Node",
|
||||||
"name": "Hub Sync",
|
"name": "Hub Sync",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
|
@ -560,3 +560,4 @@ erpnext.patches.v11_0.rename_healthcare_doctype_and_fields
|
|||||||
erpnext.patches.v11_0.add_item_group_defaults
|
erpnext.patches.v11_0.add_item_group_defaults
|
||||||
erpnext.patches.v10_0.update_address_template_for_india
|
erpnext.patches.v10_0.update_address_template_for_india
|
||||||
execute:frappe.delete_doc("Page", "hub")
|
execute:frappe.delete_doc("Page", "hub")
|
||||||
|
erpnext.patches.v11_0.reset_publish_in_hub_for_all_items
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.reload_doc('stock', 'doctype', 'item')
|
||||||
|
frappe.db.sql("""update `tabItem` set publish_in_hub = 0""")
|
Loading…
Reference in New Issue
Block a user