Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
335 Widoki

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?  

Awatar
Odrzuć
Najlepsza odpowiedź

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>


Awatar
Odrzuć