跳至內容
選單
此問題已被標幟
1 回覆
6434 瀏覽次數

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 !

相關帖文 回覆 瀏覽次數 活動
1
3月 15
7283
1
7月 25
766
2
7月 25
866
1
7月 25
1936
3
4月 25
1963