Skip to Content
Menu
This question has been flagged
1 Atsakyti
6477 Rodiniai

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 ?

Portretas
Atmesti
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!

Portretas
Atmesti
Autorius

Thank you it perfectly works !

Related Posts Replies Rodiniai Veikla
1
kov. 15
7314
1
liep. 25
868
2
liep. 25
1006
1
liep. 25
2078
3
bal. 25
2040