Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
How to call a python function in a mako file
Good Morning my friends
Please, who can tell me how can i call a function that i have defined in my python file in the mako file.
Thanks a lot in advance
Regards.
Hi,
You can link the mako template with python parser file and call the function in mako template like we do in case of rml reports. The difference is in the syntax, which you may understand by referring the following module. Please refer the module and try to understand how the mako template and parser linked. You can see many python function called in that.
https://apps.openerp.com/apps/modules/8.0/account_financial_report_webkit/
Also download this file to get an understanding of syntaxes in mako templates:
https://drive.google.com/file/d/0B9fGr6w-dfLWSF9ic3NFeTM5dDQ/edit
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 10/28/15, 6:22 AM |
Seen: 1195 times |
Last updated: 11/21/15, 6:09 AM |