[fix] contact address link patch

This commit is contained in:
Rushabh Mehta 2017-01-19 14:27:02 +05:30
parent 818af75575
commit 00d3cd6d64

View File

@ -1,8 +1,10 @@
import frappe
from frappe.core.doctype.dynamic_link.dynamic_link import deduplicate_dynamic_links
def execute():
frappe.reload_doctype('Contact')
frappe.reload_doctype('Address')
frappe.reload_doc('core', 'doctype', 'dynamic_link')
frappe.reload_doc('email', 'doctype', 'contact')
frappe.reload_doc('geo', 'doctype', 'address')
map_fields = (
('Customer', 'customer'),
('Supplier', 'supplier'),
@ -21,4 +23,5 @@ def execute():
dirty = True
if dirty:
doc.save()
deduplicate_dynamic_links(doc)
doc.update_children()