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

I want to add print functionality in Journal Entries screen, which should be displayed and should work like print in invoice screen. How to do this?

아바타
취소
베스트 답변

To show the print report in report menu you have to :

1- create report and link it with the required model

2- create your template and link it with the report definition

EX:

<report
id="report_print_journal"
string="Print Journal"
model="account.move"
report_type="qweb-pdf"
name="account.print_journal"
file="account.print_journal"
print_report_name="'Print Journal- %s' % (object.name).replace('/', '')"
/>

<template id="print_journal">
<t t-call="web.basic_layout">
<div class="page">
<t t-foreach="docs" t-as="guest"> #here means the recordset of model

and complete you report
아바타
취소
작성자

Thanks for your answer

관련 게시물 답글 화면 활동
1
4월 19
4340
2
7월 25
1593
5
5월 25
9633
3
2월 25
3090
0
1월 24
1574