Merge pull request #7046 from deepeshgarg007/comments

fix: Move comments from communication
This commit is contained in:
Rushabh Mehta 2019-03-08 12:56:21 +05:30 committed by GitHub
commit 40dd3eb70f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -87,7 +87,7 @@
"collapsible": 0, "collapsible": 0,
"columns": 0, "columns": 0,
"fieldname": "subject", "fieldname": "subject",
"fieldtype": "Data", "fieldtype": "Text",
"hidden": 0, "hidden": 0,
"ignore_user_permissions": 0, "ignore_user_permissions": 0,
"ignore_xss_filter": 0, "ignore_xss_filter": 0,
@ -476,7 +476,7 @@
"issingle": 0, "issingle": 0,
"istable": 0, "istable": 0,
"max_attachments": 0, "max_attachments": 0,
"modified": "2019-02-08 09:18:33.843171", "modified": "2019-03-07 18:39:37.598451",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Core", "module": "Core",
"name": "Comment", "name": "Comment",

View file

@ -3,6 +3,8 @@ from __future__ import unicode_literals
import frappe import frappe
def execute(): def execute():
frappe.reload_doctype("Comment")
for comment in frappe.get_all('Communication', fields = ['*'], for comment in frappe.get_all('Communication', fields = ['*'],
filters = dict(communication_type = 'Comment')): filters = dict(communication_type = 'Comment')):