From d07c041125e730b5bb5ae46b24a552e3c0202260 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Thu, 30 Mar 2017 21:41:07 +0530 Subject: [PATCH 1/3] [Fix] Addresses linked back to Lead --- erpnext/patches.txt | 3 ++- erpnext/patches/v8_0/addresses_linked_to_lead.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 erpnext/patches/v8_0/addresses_linked_to_lead.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 4aa1f37388..cb8ba03d6b 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -380,4 +380,5 @@ erpnext.patches.v7_2.update_attendance_docstatus erpnext.patches.v7_2.move_dates_from_salary_structure_to_employee erpnext.patches.v7_2.make_all_assessment_group erpnext.patches.v8_0.manufacturer_childtable_migrate -erpnext.patches.v8_0.repost_reserved_qty_for_multiple_sales_uom \ No newline at end of file +erpnext.patches.v8_0.repost_reserved_qty_for_multiple_sales_uom +erpnext.patches.v8_0.addresses_linked_to_lead \ No newline at end of file diff --git a/erpnext/patches/v8_0/addresses_linked_to_lead.py b/erpnext/patches/v8_0/addresses_linked_to_lead.py new file mode 100644 index 0000000000..c485b5b10a --- /dev/null +++ b/erpnext/patches/v8_0/addresses_linked_to_lead.py @@ -0,0 +1,4 @@ +import frappe + +def execute(): + frappe.db.sql("""UPDATE `tabDynamic Link` SET link_doctype = 'Lead' WHERE link_doctype = 'Load'""") From 3d5bdeb90ddcc21962bdd54bcb613e9d3e2870c3 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Thu, 30 Mar 2017 21:50:21 +0530 Subject: [PATCH 2/3] [Fix] patch v7_2.contact_address_links --- erpnext/patches/v7_2/contact_address_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v7_2/contact_address_links.py b/erpnext/patches/v7_2/contact_address_links.py index db724b0f4e..5375d818c6 100644 --- a/erpnext/patches/v7_2/contact_address_links.py +++ b/erpnext/patches/v7_2/contact_address_links.py @@ -9,7 +9,7 @@ def execute(): map_fields = ( ('Customer', 'customer'), ('Supplier', 'supplier'), - ('Load', 'lead'), + ('Lead', 'lead'), ('Sales Partner', 'sales_partner') ) for doctype in ('Contact', 'Address'): From 79fddcfac10f7cd8c1826e7a94ba90dd6994dd17 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 31 Mar 2017 00:20:27 +0600 Subject: [PATCH 3/3] bumped to version 8.0.3 --- erpnext/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/__init__.py b/erpnext/__init__.py index 1e50632392..ce9a142fd1 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals import frappe -__version__ = '8.0.2' +__version__ = '8.0.3' def get_default_company(user=None): '''Get default company for user'''