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')):