Skip to Content
Menu
This question has been flagged
1 Reply
5451 Views

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
Discard
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
Discard
Author

Thank you it perfectly works !

Related Posts Replies Views Activity
1
Mar 15
6400
1
Sep 24
233
2
Aug 24
358
3
Jul 24
2391
1
Jul 24
363