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

Hi, we have added a line note to an invoice that has not been added to the e-factura PDF generated by the provider. How can we add a line comment in the report? Thanks


In Odoo:


In the PDF:


Avatar
Descartar
Mejor respuesta

Hello Altos Global! As the PDF is created in Uruware, the way you can add these kind of notes is using Addendas and Disclosures (adendas y leyendas obligatorias). There's a model in Accounting>Configurations>Addendas and Disclosures where you can create as many as you want and then make sure you make the field visible in the line. You can also create the note "on the fly" while creating the invoice, no need to go to the model and this info/note will be available later to add it in the lines if needed.

Just FYI, in the model, there are 4 fields: name, type, Is legend? and content. If you want to add a note to the product, the field "type" has to be "Product/Service detail" to be able to add it on the invoice lines. The field "Is Legend?" is for a mandatory disclosure, if this field is true, in the XML the content goes with {} and it will be bold in the PDF. If this is only a note, this field should be false, that way it is only an additional information for the product.

Here's a link to the documentation 😉. 
https://www.odoo.com/documentation/18.0/applications/finance/fiscal_localizations/uruguay.html#addendas-and-disclosures

Let us know if you have additional questions.

Cheers!

Avatar
Descartar
Autor

Thanks Fernando this worked!

Mejor respuesta

Hello, 

add this code:

<t t-elif="line.display_type == 'line_note'">

         <td colspan="99">

                                                <span t-field="line.name" t-options="{'widget': 'text'}">A note, whose content usually applies to the section or product above.</span>

                                            </td>

                                        </t>


code:

Example:

before 

After:

Odoo

Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
feb 25
39
1
ago 25
152
1
feb 25
1341
1
dic 24
1536
2
ago 25
628