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
Discard