Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6419 Vizualizări

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 ?

Imagine profil
Abandonează
Cel mai bun răspuns

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!

Imagine profil
Abandonează
Autor

Thank you it perfectly works !

Related Posts Răspunsuri Vizualizări Activitate
1
mar. 15
7268
1
iul. 25
698
2
iul. 25
799
1
iul. 25
1878
3
apr. 25
1887