I am trying to Create a PDF Report but i couldnt understand what causing the Issue this is my code
Sales
sale.order
qweb-pdf
sale_order.report_sale_template
sale_order.report_sale_template
'Test'
report
Unable to add code.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am trying to Create a PDF Report but i couldnt understand what causing the Issue this is my code
Sales
sale.order
qweb-pdf
sale_order.report_sale_template
sale_order.report_sale_template
'Test'
report
Unable to add code.
Hi,
Couldn't see your code if its for report i think this might be the most common issue causing for external Id in common Reports is
Correct format of Report
<record id="action_report_tour_tour" model="ir.actions.report">
<field name="name">Tour</field>
<field name="model">tour.tour</field>
<field name="report_type">qweb-pdf</
<field name="report_name">travel_
<field name="report_file">travel_
<field name="print_report_name">'Tour - %s' % object.name</field>
<field name="binding_model_id" ref="model_tour_tour"/>
<field name="binding_type">report</
</record>
Write the Report like this
If the Report is like not in the correct format it will cause external Id Issue
for example
<record id="action_report_tour_tour" model="ir.actions.report">
<field name="name">Tour</field>
<field name="model">tour.tour</field>
<field name="report_type">qweb-pdf</
<field name="report_name">
travel_management_system.
</field>
<field name="report_file">
travel_management_system.
</field>
<field name="print_report_name">'Tour - %s' % http://object.name" target="_blank" data-saferedirecturl="object.name</field>
" rel="ugc">https://www.google.com/url?q=http://object.name&source=gmail&ust=1707364062711000&usg=AOvVaw2tAdSSiuFEZpVQ3bQ6tyDR">object.name</field>
<field name="binding_model_id" ref="model_tour_tour"/>
<field name="binding_type">report</
</record>
Hope it helps
Hope it helps
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Haz 23
|
3350 | ||
|
1
Nis 23
|
2791 | ||
|
1
Ara 22
|
2280 | ||
|
3
Nis 24
|
7564 | ||
|
0
Mar 24
|
1347 |