Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3604 Lượt xem

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




Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 8 19
24400
0
thg 9 18
4172
3
thg 3 18
7989
1
thg 11 17
5627
4
thg 10 17
26179