How do I call a python function from QWeb. In my custom module, I have inherited the purchase order template, and have the following function call:
<span t-esc="call_function1(o.amount_total)" />
The function is defined in a python file in the same module.
However I get an error saying:
QWebException: ""'NoneType' object is not callable" while evaluating 'call_function1(o.amount_total)'" while evaluating "translate_doc(doc_id, doc_model, 'partner_id.lang', 'purchase.report_purchaseorder_document')"
Does anyone have an idea as to what I am doing wrong?
Hope this tips will help: https://sites.google.com/view/thinkincode/erp/odoo