[fix] contact address link patch
This commit is contained in:
parent
818af75575
commit
00d3cd6d64
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user