Pārlūkot izejas kodu

Merge pull request #950 from nabinhait/fix1

Minor fix in communication
version-14
Nabin Hait pirms 10 gadiem
vecāks
revīzija
5a416d50f8
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      frappe/core/doctype/communication/communication.py

+ 3
- 2
frappe/core/doctype/communication/communication.py Parādīt failu

@@ -25,8 +25,9 @@ class Communication(Document):


def update_parent(self): def update_parent(self):
"""update status of parent Lead or Contact based on who is replying""" """update status of parent Lead or Contact based on who is replying"""
parent_doc = self.get_parent_doc()
parent_doc.run_method("on_communication")
if self.parenttype and self.parent:
parent_doc = self.get_parent_doc()
parent_doc.run_method("on_communication")


def on_update(self): def on_update(self):
self.update_parent() self.update_parent()


Notiek ielāde…
Atcelt
Saglabāt