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?
Cette question a été signalée
1
Répondre
7389
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
avr. 19
|
5881 | ||
|
|
6
mai 26
|
12574 | ||
|
|
1
mars 26
|
1699 | ||
|
|
2
juil. 25
|
3403 | ||
|
|
3
févr. 25
|
5108 |