跳至內容
選單
此問題已被標幟
1 回覆
6134 瀏覽次數

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 


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
10月 16
30996
1
12月 15
4438
0
11月 15
3570
3
11月 15
12809
1
9月 15
3720