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

I have two models:

     *payslip (one2many relation to payslip_lines)

     *payslip_lines


I can use an email template and send with some data from payslip model, but ¿how can add them into same email as a table? I guess as context and loop in payslip_line mark in template like in qweb reports (?)

for instance:

Dear customer:

Here you have your current lines to pay:

Product
Color
Price
Product 1
white
1000
Product 2
black
800

Thank you.

아바타
취소
베스트 답변

HI,

You will get same idea in below app what you looking for , have a look 

https://apps.odoo.com/apps/modules/11.0/dev_payslip_mail/

아바타
취소
베스트 답변

If you want to use qweb as templating engine, you should try this module: https://www.odoo.com/apps/modules/10.0/email_template_qweb/

Otherwise you should create a Jinja2 table, see this for more information: https://stackoverflow.com/questions/43602294/how-to-print-table-using-jinja2-without-page-refresh

아바타
취소
관련 게시물 답글 화면 활동
1
5월 19
2976
1
2월 18
2712
1
8월 17
7301
0
3월 21
2701
1
12월 23
9243