Skip to Content
Menu
This question has been flagged
2 Replies
2972 Views

Hi,


When I add this to my report :


<t t-call="adquat_customer_form.external_layout_standard_customer">

All my content is hidden. I can't add footer or header...


Here is my entire code :


<odoo>
<data>
<report
string="Demande client"
id="action_customer_form"
model="customer.form"
report_type="qweb-pdf"
name="adquat_customer_form.report_customer"
file="adquat_customer_form.report_customer"/>

<template id="external_layout_standard_customer">
<div class="header">

</div>

<div class="footer">
<div class="text-center" style="border-top: 1px solid black;">
<div class="text-muted">
Page: <span class="page"/> / <span class="topage"/>
</div>
</div>
</div>
</template>

<template id="report_document_customer">
<t t-call="adquat_customer_form.external_layout_standard_customer">
<div class="page">
<h3>
<span t-field="o.name"/>
</h3>
<div class="row">
<div class="col-12">
<h5>
Expression du besoin du <span t-field="o.date"/> par <span t-field="o.first_name"/> <span t-field="o.last_name"/>
</h5>
</div>
<div class="col-12" style="border: 1px solid black; padding-left: 20px; padding-right: 20px">
<h5>
<span t-field="o.need"/>
</h5>
</div>
<div class="col-12">
<h5>
Réponse ADQUAT
</h5>
</div>
<div class="col-12" style="border: 1px solid black; padding-left: 20px; padding-right: 20px">
<h5>
<span t-field="o.reply"/>
</h5>
</div>
<div class="col-12">
<h5>
Commentaire
</h5>
</div>
<div class="col-12" style="border: 1px solid black; padding-left: 20px; padding-right: 20px">
<h5>
<span t-field="o.comment"/>
</h5>
</div>
<div class="col-12" style="border: 1px solid black; text-align: center; margin: 20px 0">
<h5>
ACCEPTATION CLIENT POUR REALISATION
</h5>
</div>
<div class="col-4">
<span>Le : _______________</span><br/>
<span>Signature client</span>
</div>
<div class="col-4" style="float: right; margin-top: -40px; width: 200px;">
<span>Le : _______________</span><br/>
<span>Signature ADQUAT</span>
</div>
</div>
</div>
</t>
</template>

<template id="report_customer">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="adquat_customer_form.report_document_customer" t-lang="fr_FR"/>
</t>
</t>
</template>

</data>
</odoo>


I know there is nothing in my header but even I add some content, that do this.

How am I supposed to do?


Thanks,

Best regards.

Avatar
Discard

Custom header and footer in odoo reporting: http://bit.ly/2VMX63r

Author Best Answer

I found a solution.


Juste add a single tag

<t t-call="adquat_customer_form.external_layout_standard_customer"/>
Avatar
Discard
Related Posts Replies Views Activity
1
Jul 23
1327
0
May 23
1492
3
Apr 23
18821
1
Nov 22
861
1
May 22
4639