Browse Source

Update document status via communication if not feed (#4234)

version-14
Nabin Hait 7 years ago
committed by GitHub
parent
commit
451b48e4e2
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      frappe/core/doctype/communication/communication.py

+ 4
- 3
frappe/core/doctype/communication/communication.py View File

@@ -94,9 +94,10 @@ class Communication(Document):

def on_update(self):
"""Update parent status as `Open` or `Replied`."""
update_parent_status(self)
update_comment_in_doc(self)
self.bot_reply()
if self.comment_type != 'Updated':
update_parent_status(self)
update_comment_in_doc(self)
self.bot_reply()

def on_trash(self):
if (not self.flags.ignore_permissions


Loading…
Cancel
Save