소스 검색

[minor] don't update the parent status if comment is added (#4241)

version-14
Makarand Bauskar 7 년 전
committed by Rushabh Mehta
부모
커밋
9b32196c11
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      frappe/core/doctype/communication/email.py

+ 5
- 0
frappe/core/doctype/communication/email.py 파일 보기

@@ -173,6 +173,11 @@ def update_parent_status(doc):
if not parent: if not parent:
return return


# update parent status only if we create the Email communication
# ignore in case of only Comment is added
if doc.communication_type == "Comment":
return

status_field = parent.meta.get_field("status") status_field = parent.meta.get_field("status")


if status_field: if status_field:


불러오는 중...
취소
저장