İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6038 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Thanks for your answer

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 19
4332
2
Tem 25
1591
5
May 25
9632
3
Şub 25
3084
0
Oca 24
1568