Whenever add a new comment inside any doctype that current object last edited (modified time) is not updated.
@yabesh_sam it does not update. however the is a counter of comments which indicate 6 in your case .
@bahaou That counter was updated, but current object ‘last edited this’ time was not getting updated.
Hi @yabesh_sam,
Please check the reference
If you want to set for all doctype then apply it like
Server Script:
if doc.comment_type == "Comment" and doc.reference_doctype:
upd_issue = frappe.get_doc(doc.reference_doctype, doc.reference_name)
upd_issue.save()
2 Likes