Skip to Content
Menu
This question has been flagged
1 Odpoveď
6428 Zobrazenia

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
Zrušiť
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
Zrušiť
Autor

Thank you it perfectly works !

Related Posts Replies Zobrazenia Aktivita
1
mar 15
7279
1
júl 25
718
2
júl 25
815
1
júl 25
1895
3
apr 25
1909