콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6056 화면

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
30937
1
12월 15
4388
0
11월 15
3514
3
11월 15
12733
1
9월 15
3660