Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6405 Weergaven

In Odoo 12, we can add "section" and "note" in invoices (and sale) in the lines,

But I want to create a "note line" with self.env['...'].create(), 

What is the model for these "note lines" please ?

Avatar
Annuleer
Beste antwoord

Hi,

If you want to create it via Python, the model to use is account.invoice.line and assigning the value of the field "display_type" to "line_section" or "line_note".

Best regards!

Avatar
Annuleer
Auteur

Thank you it perfectly works !

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 15
7247
1
jul. 25
638
2
jul. 25
758
1
jul. 25
1825
3
apr. 25
1867