Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5855 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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 


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
říj 16
30701
1
pro 15
4245
0
lis 15
3303
3
lis 15
12427
1
zář 15
3486