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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
	def on_update(self):
		"""Update parent status as `Open` or `Replied`."""
		update_parent_status(self)
		update_comment_in_doc(self)
Ejemplo n.º 4
0
	def on_update(self):
		"""Update parent status as `Open` or `Replied`."""
		update_parent_status(self)
		update_comment_in_doc(self)
		self.bot_reply()
Ejemplo n.º 5
0
 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()
Ejemplo n.º 6
0
	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()