Skip to Content
Menú
This question has been flagged

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
Descartar
Related Posts Respostes Vistes Activitat
7
d’ag. 19
23611
0
de set. 18
3859
3
de març 18
7491
1
de nov. 17
5082
4
d’oct. 17
25601