Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6381 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Thank you it perfectly works !

Post Terkait Replies Tampilan Aktivitas
1
Mar 15
7119
1
Jul 25
547
2
Jul 25
693
1
Jul 25
1747
3
Apr 25
1770