def on_update(self): if self.status == "Open" and self.docstatus < 1: # notify leave approver about creation if frappe.db.get_single_value("HR Settings", "send_leave_notification"): self.notify_leave_approver() share_doc_with_approver(self, self.leave_approver)
def on_update(self): share_doc_with_approver(self, self.approver)