跳至内容
菜单
此问题已终结

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




形象
丢弃
相关帖文 回复 查看 活动
7
8月 19
24414
0
9月 18
4195
3
3月 18
8004
1
11月 17
5631
4
10月 17
26184