Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6384 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

Thank you it perfectly works !

Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
7121
1
čvc 25
549
2
čvc 25
696
1
čvc 25
1747
3
dub 25
1775