def execute(): for d in frappe.db.get_all("Communication", fields = ['name', 'reference_doctype', 'reference_name', 'content', 'communication_type'], filters = {'communication_type': 'Communication'}): try: update_comment_in_doc(d) except frappe.ImplicitCommitError: pass
def execute(): for d in frappe.db.get_all("Communication", fields=[ 'name', 'reference_doctype', 'reference_name', 'content', 'communication_type' ], filters={'communication_type': 'Communication'}): try: update_comment_in_doc(d) except frappe.ImplicitCommitError: pass
def on_update(self): """Update parent status as `Open` or `Replied`.""" update_parent_status(self) update_comment_in_doc(self)
def on_update(self): """Update parent status as `Open` or `Replied`.""" update_parent_status(self) update_comment_in_doc(self) self.bot_reply()
def on_update(self): """Update parent status as `Open` or `Replied`.""" if self.comment_type != 'Updated': update_parent_mins_to_first_response(self) update_comment_in_doc(self) self.bot_reply()