تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6437 أدوات العرض

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
مارس 15
7283
1
يوليو 25
770
2
يوليو 25
875
1
يوليو 25
1940
3
أبريل 25
1965