We have one DocType call “Wechat Send Doc”, which will send Wechat App notify message after user created one instance of this DocType. def after_insert(self): frappe.enqueue('wechat.wechat.doctype.wechat_send_doc.wechat_send_doc.wechat_send', doc_name=self.name)
I am working with develop branch. I have defined the after_save in WechatSendDoc class, it is not be called. I have also tried with hooks.py: doc_events = { "Wechat Send Doc": { "after_save": "wechat.wechat.doctype.wechat_send_doc.wechat_send_doc.after_save", } }
No lucky
For having doc_events, I defined the after_save outside. For testing, I have two methods called after_save in wechat_send_doc.py. One is after_save(self) in class, another is after_save(doc, method): outside