fixed patch for hub

This commit is contained in:
Achilles Rasquinha 2018-03-15 12:48:32 +05:30
parent b2d318ec48
commit d8f7de9946
3 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class CropCycle(Document):
project.expected_start_date = self.start_date
project.expected_end_date = frappe.utils.data.add_days(self.start_date, period-1)
project.insert()
print(project)
self.create_task(crop_tasks, project.as_dict.im_self.name, self.start_date)
return project.as_dict.im_self.name

View File

@ -495,3 +495,4 @@ erpnext.patches.v10_0.set_auto_created_serial_no_in_stock_entry
erpnext.patches.v10_0.update_territory_and_customer_group
erpnext.patches.v10_0.update_warehouse_address_details
erpnext.patches.v10_0.update_reserved_qty_for_purchase_order
erpnext.patches.v10_0.update_hub_connector_domain

View File

@ -0,0 +1,8 @@
import frappe
def execute():
frappe.db.sql("""
UPDATE `tabData Migration Connector`
SET hostname = 'https://hubmarket.org'
WHERE connector_name = 'Hub Connector'
""")