Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6191 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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
Awatar
Odrzuć
Autor

Thanks for your answer

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 19
4495
2
lip 25
1734
5
maj 25
9774
3
lut 25
3337
0
sty 24
1774