I have a problem in Odoo QWeb reports. I want to add a custom field x_nature_operation in my invoice PDF report (account.move). How can I do this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
342
أدوات العرض
Hello,
Create or modify the report template in views/report_invoice.xml
<template id="report_invoice_document_inherit" inherit_id="account.report_invoice_document">
<xpath expr="//div[@class='row mt32 mb32']" position="before">
<div class="text-center">
<strong>Nature of Operation:</strong> <t t-esc="o.x_nature_operation"/>
</div>
</xpath>
</template>
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل