Hello,
we are just starting evaluating frappe/erpnext and are quite impressed about the concept. Missing features to another solution with a lot of “OOO” are for our opinion totally ok for the target market. Anyway, we just see if we can replicate functionality from that into an additional app.
For this reason we have to hook into things like sales invoice Following the thread in the forum, i used hooks.py
in our app with the following code snippet:
doc_events = {“Sales Invoice”:{“validate”:“esaas.edms.doctype.document_types.document_types.doSomething”}
to just call a small function within the new app on validate event:
class DocumentTypes(Document):
def doSomething():
counter = 1
print “hook reached”
The following error is received:
AttributeError: ‘module’ object has no attribute ‘doSomething’
If anyone could give a short advice, it would be very great.
Best Regards
Ralph