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

Hello,


I am trying to change a field of a report. I want to change TIN for NIT. I send an image to explain the change https://pasteboard.co/HjHnn9f.png


Thank you!


Ảnh đại diện
Huỷ bỏ

Please use a meaningful title.

Câu trả lời hay nhất

Hello Juan,

For Odoo v11:

For that you can set "Vat Label" in Country of your Company, if it is not set in country then it will default display "TIN"

Here, I have attached screenshot.


Odoo v10 & v9 :

You can inherit external_layout_footer as following :

<template id="external_layout_footer" inherit_id="report.external_layout_footer">
     <xpath expr="// li[@t-if='company.vat']" position="replace">
        <li t-if="company.vat">NIT: <span t-field="company.vat"/></li>
    </xpath>
</template>

Thanks,

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thank you very much, the configuration worked

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
564
3
thg 5 25
1861
1
thg 4 25
1587
1
thg 4 25
1386
3
thg 9 24
14361