Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
6488 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

Thank you it perfectly works !

Related Posts Besvarelser Visninger Aktivitet
1
mar. 15
7321
1
jul. 25
877
2
jul. 25
1026
1
jul. 25
2127
3
apr. 25
2053