Hi, good day.
I would like to override the doc_events hooks that are implemented in another app. How can I do this using my own app? Thank you.
doc_events = {
"Sales Invoice": {
"before_submit": "custom_app.utils.generate_einvoice"
}
}
Hi, good day.
I would like to override the doc_events hooks that are implemented in another app. How can I do this using my own app? Thank you.
doc_events = {
"Sales Invoice": {
"before_submit": "custom_app.utils.generate_einvoice"
}
}
I monkey patch the method generate_einvoice