Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3603 Weergaven

Hello

I want to add the order number of sale.order, invoice in the qweb footer (report.external_layout_footer)

My problem is now that my sale.order and the invoice reports are using this footer.

Is there a way to check if it's invoice or sale order, so it should change this code?:


<div class="footer-page">
<t t-if="'name' in o.fields_get()">
<span t-esc="o.name"/>
</t>
<t t-if="'number' in o.fields_get()">
<span t-esc="o.number"/>
</t>
<br/>
<span>
<span>Page:</span>
<span class="page"/>
von
<span class="topage"/>
</span>
</div>

I tried with this but it shows me on my invoice the name of the partner....


finally it should show when I print the sale order this:

"number of sale order"

and when I print the invoice this:

"number of invoice"


Thank you




Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
7
aug. 19
24397
0
sep. 18
4171
3
mrt. 18
7985
1
nov. 17
5627
4
okt. 17
26179