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

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:


Awatar
Odrzuć
Najlepsza odpowiedź

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!

Awatar
Odrzuć
Autor

Thanks Fernando this worked!

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lut 25
39
1
sie 25
259
1
lut 25
1413
1
gru 24
1616
2
sie 25
679