Skip to Content
Menu
This question has been flagged
1 Atsakyti
5953 Rodiniai

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?

Portretas
Atmesti
Best Answer

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
Portretas
Atmesti
Autorius

Thanks for your answer

Related Posts Replies Rodiniai Veikla
1
bal. 19
4271
2
liep. 25
1486
5
geg. 25
9494
3
vas. 25
2852
0
saus. 24
1469