Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6002 Prikazi

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
Opusti
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
Opusti
Avtor

Thank you it perfectly works !

Related Posts Odgovori Prikazi Aktivnost
1
mar. 15
6710
3
apr. 25
771
3
apr. 25
1448
1
mar. 25
844
2
jan. 25
782