Odoo Help

2

0
1 Answer
0
Avatar

Rajkumar Murugan India

--Rajkumar Murugan--

5648
| 3 1 4
Puducherry, India
--Rajkumar Murugan--


Rajkumar Murugan India
7/26/19, 8:56 AM

Try like this:

Report template:

<odoo>

<?xml version="1.0"?>
<template id="equipment_report_documents">
<t t-call="web.external_layout_standard">
<div class="page">
<p>This is a sample of an external report.</p>
</div>
</t>
</template>

<template id="web.equipment_report">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.equipment_report_documents" />
</t>
</t>
</template>
</odoo>

Note: Template id(equipment_report) should match with report action name. For eg.

Report action:

<report id="any_name" model="name_of_the_model"
string="Name to show in print option" report_type="qweb-pdf"
name="web.equipment_report" file="web.equipment_report"
paperformat="base.paperformat_us" />

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now