Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6379 Widoki

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 ?

Awatar
Odrzuć
Najlepsza odpowiedź

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!

Awatar
Odrzuć
Autor

Thank you it perfectly works !

Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
7119
1
lip 25
546
2
lip 25
693
1
lip 25
1747
3
kwi 25
1769