Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6713 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
7520
1
jul. 25
1264
2
jul. 25
1506
1
jul. 25
2539
3
abr. 25
2464