hi all,
i need to insert all modification to an issue, and your custom filed, to time line.
Example: i have a custom field, check box, named “Accept”
When a user check this and save, the custom script write on timeline “Mario - 1 minutes ago check”
this write a comment on all refresh of page, and not only i write in a field and save the issue
i have try this
frappe.ui.form.on("Issue", {
refresh: function(frm) {
frm.timeline.insert_comment("Comment", frm.doc.accept);
}
});
but receive this
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/comment.py”, line 19, in validate_comment
if doc.comment_type==“Comment” and “” not in doc.content:
TypeError: argument of type ‘NoneType’ is not iterable
the problem is a custom field “accept” ,right?