Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6159 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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
Avatar
Abbandona
Autore

Thanks for your answer

Post correlati Risposte Visualizzazioni Attività
1
apr 19
4456
2
lug 25
1720
5
mag 25
9747
3
feb 25
3317
0
gen 24
1761