Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6376 Vistas

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
Descartar
Mejor respuesta

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

Thank you it perfectly works !

Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
7118
1
jul 25
545
2
jul 25
692
1
jul 25
1746
3
abr 25
1768