Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6013 Visualizações

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
Cancelar
Melhor resposta

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

Thank you it perfectly works !

Publicações relacionadas Respostas Visualizações Atividade
1
mar. 15
6721
3
abr. 25
822
3
abr. 25
1492
1
mar. 25
891
2
jan. 25
815