Hello I have a field called ice on the customer form and I want it to appear on the invoice printing report under the customer address thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Hello HANT,
For that, You want to inherit existing report and add your own fields.
Try below code :-
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="account_invoice_report_add_field" inherit_id="account.report_invoice_document">
<xpath expr="//span[@t-if='o.partner_id.vat']" position="before">
Ice : <t t-field="o.partner_id.ice"/>
</xpath>
</template>
</data>
</odoo>
Hope it will works for you.
Thanks,
Where can I add this
Which file please?
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ