Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1225 Vistas

Hi, 

maybe someone can help me out here.

We use ODOO 17 and when a contact has VAT-Number entered, it is printed on the Invoice.

We already found, where to "hide" that. However I am unable to print it in another location.

I simply do not now how.


So we removed/commented in "report-invoice-document", which dies work. But I am unable to get it printed anywhere else. We want it printed where the list for Date, Source and Ref is displayed... but how?


Maybe anyone can help me here?


Thank you in advance!


            
               
               
               

                   
                       

                           
                               

                                    Shipping Address:
                                   

                               

                           
                       

                       

                           
                               

                               

                               
                               

                           
                       

                   
                   
                       

                           
                               

                               

                                   
                               

                           
                       

                   
                   
                       

                           
                               

                               

                                   
                               

                           
                       

                   
               

               



Avatar
Descartar
Autor Mejor respuesta

Thank you for you response.

Can you point me a bit more in the right direction, where to place/create this?

Update: I guess all is right but we use the DIN5008 template, and it looks like this needs some "special" handling to add another field. Maybe someone can point me in the right direction where to change this?

Regards

Avatar
Descartar
Mejor respuesta

Hello


Please use this code ,


<template id="report_custom_invoice_document" inherit_id="account.report_invoice_document">

            <xpath expr="//div[@id='informations']" position="inside">

                <div t-attf-class="#{'col-auto col-3 mw-100' if report_type != 'html' else 'col'} mb-2" t-if="o.partner_id.vat" name="vat">

                    <strong>Vat:</strong><br/>

                    <span t-field="o.partner_id.vat"/>

                </div>

            </xpath>

        </template>



Thankyou.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 25
1349
0
ene 25
1128
1
may 24
1981
2
abr 24
1970
2
feb 24
1338