From 2fac689455dc5d8f2a906a31f9bef85be6fdb4fe Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Thu, 7 Mar 2019 22:15:04 +0530 Subject: [PATCH] fix: Reload comment doctype --- frappe/patches/v12_0/setup_comments_from_communications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/patches/v12_0/setup_comments_from_communications.py b/frappe/patches/v12_0/setup_comments_from_communications.py index 92256e130e..1a7a5aef84 100644 --- a/frappe/patches/v12_0/setup_comments_from_communications.py +++ b/frappe/patches/v12_0/setup_comments_from_communications.py @@ -3,6 +3,8 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reload_doctype("Comment") + for comment in frappe.get_all('Communication', fields = ['*'], filters = dict(communication_type = 'Comment')):