Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5937 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to make line items mandatory? แก้ไขแล้ว
1
เม.ย. 19
4248
2
ก.ค. 25
1479
5
พ.ค. 25
9468
3
ก.พ. 25
2825
0
ม.ค. 24
1453