Sfoglia il codice sorgente

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

version-14
Nabin Hait 7 anni fa
committed by GitHub
parent
commit
451b48e4e2
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. +4
    -3
      frappe/core/doctype/communication/communication.py

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

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


def on_update(self): def on_update(self):
"""Update parent status as `Open` or `Replied`.""" """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): def on_trash(self):
if (not self.flags.ignore_permissions if (not self.flags.ignore_permissions


Caricamento…
Annulla
Salva