https://github.com/antonylesuisse/qweb/issues/17
Hi !
Are some builtin Python functions not available in qweb templates ? Because getattr(object, attr_name) returns a QWebException: "'NoneType' object is not callable".
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
https://github.com/antonylesuisse/qweb/issues/17
Hi !
Are some builtin Python functions not available in qweb templates ? Because getattr(object, attr_name) returns a QWebException: "'NoneType' object is not callable".
Thanks.
Found an ugly workaround that takes place in the controller. When returning the function, to call the template engine which will render the qweb view, just pass 'getattr': getattr in the dictionnary of values.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Oct 24
|
117 | ||
|
1
Apr 24
|
965 | ||
|
7
Sep 24
|
22445 | ||
|
1
Mar 24
|
275 | ||
|
0
Feb 24
|
410 |