Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
5945 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

Thanks for your answer

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
huhtik. 19
4265
2
heinäk. 25
1484
5
toukok. 25
9484
3
helmik. 25
2835
0
tammik. 24
1460