Skip to Content
Menú
This question has been flagged
1 Respondre
6378 Vistes

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
Descartar
Best Answer

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
Descartar
Autor

Thank you it perfectly works !

Related Posts Respostes Vistes Activitat
1
de març 15
7119
1
de jul. 25
546
2
de jul. 25
693
1
de jul. 25
1747
3
d’abr. 25
1769