Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6427 Представления

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 ?

Аватар
Отменить
Лучший ответ

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!

Аватар
Отменить
Автор

Thank you it perfectly works !

Related Posts Ответы Просмотры Активность
1
мар. 15
7277
1
июл. 25
711
2
июл. 25
812
1
июл. 25
1888
3
апр. 25
1902