Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6466 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

Thank you it perfectly works !

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 15
7303
1
Juli 25
835
2
Juli 25
981
1
Juli 25
2029
3
Apr. 25
2029