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

I have a button to populate a one2many field by creating lines from a number of criteria with default values. I would like the fom to display a tree view of the lines which allows editing the default values in the lines but not adding new rows.

How can this be achieved?

الصورة الرمزية
إهمال
أفضل إجابة

In the tree node of the one2many field, just set create="false".

This will disable the Add an item link.

See also this question

الصورة الرمزية
إهمال
أفضل إجابة

I this still possible in Odoo 16? No.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
12
ديسمبر 23
44178
7
ديسمبر 23
34279
0
مارس 15
3269
0
مارس 15
4969
8
يناير 24
16958