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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
1
Beantwoorden
5892
Weergaven
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
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
How to make line items mandatory?
Opgelost
|
|
1
apr. 19
|
4202 | |
|
2
jul. 25
|
1431 | ||
|
5
mei 25
|
9405 | ||
|
3
feb. 25
|
2758 | ||
|
0
jan. 24
|
1412 |