From 3f7c514a4887676503654c5f678658ffa28e1268 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sat, 1 Apr 2017 01:57:38 +0530 Subject: [PATCH] Reload contact to update new module, which is required while reloading communication --- frappe/core/doctype/user/user.js | 2 +- frappe/patches/v7_2/update_communications.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frappe/core/doctype/user/user.js b/frappe/core/doctype/user/user.js index b2cea1876b..be69e45147 100644 --- a/frappe/core/doctype/user/user.js +++ b/frappe/core/doctype/user/user.js @@ -84,7 +84,7 @@ frappe.ui.form.on('User', { } } if (!found){ - frm.add_custom_button("Create User Email", function() { + frm.add_custom_button(__("Create User Email"), function() { frm.events.create_user_email(frm) }) } diff --git a/frappe/patches/v7_2/update_communications.py b/frappe/patches/v7_2/update_communications.py index 930b53cc00..b7a1b962f8 100644 --- a/frappe/patches/v7_2/update_communications.py +++ b/frappe/patches/v7_2/update_communications.py @@ -6,10 +6,12 @@ def execute(): remove Guest None from sender full name setup feedback request trigger's is_manual field """ - + frappe.reload_doc('core', 'doctype', 'dynamic_link') + frappe.reload_doc('email', 'doctype', 'contact') + frappe.reload_doc("core", "doctype", "feedback_request") frappe.reload_doc("core", "doctype", "communication") - + if frappe.db.has_column('Communication', 'feedback'): frappe.db.sql("""update tabCommunication set content=ifnull(feedback, "feedback details not provided") where communication_type="Feedback" and content is NULL""")