fix: Incorrect use of the Walrus operator
Incorrect use of the Walrus operator leads to unintended behavior for if-condition: "None" will be appended to cc.
This commit is contained in:
parent
c2ed98602a
commit
2a80bb01ac
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class CommunicationEmailMixin:
|
|||
if include_sender:
|
||||
cc.append(self.sender_mailid)
|
||||
if is_inbound_mail_communcation:
|
||||
if (doc_owner := self.get_owner()) not in frappe.STANDARD_USERS:
|
||||
if (doc_owner := self.get_owner()) and (doc_owner not in frappe.STANDARD_USERS):
|
||||
cc.append(doc_owner)
|
||||
cc = set(cc) - {self.sender_mailid}
|
||||
cc.update(self.get_assignees())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue