Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
6708 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

Thank you it perfectly works !

Publications associées Réponses Vues Activité
1
mars 15
7518
1
juil. 25
1259
2
juil. 25
1496
1
juil. 25
2537
3
avr. 25
2462