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

I created a model with a field called source_files, which is a many2many related to the table ir.attachment. In the XML, I use the widget many2many_binary to add files to source_files in an elegant way.

However, I have to select the fields one by one. Is there any way to select a group of files at a time and set them as the value of source_files?

Draging the pointer over all the files and click on Select would be perfect, but if there is other way, I don't mind at all.

Can anyone help me, please?

الصورة الرمزية
إهمال

you can validate my answer if this is the good answer uber the vote button, bye

أفضل إجابة

Hi,

try use widget="one2many_list"

Bye

الصورة الرمزية
إهمال
الكاتب

Hello Cyril and thank you for answering. I think I didn't explain myself very well. The relationship is a many2many, and I want to avoid selecting the files one by one (with the widget one2many_list I still have to add an element each time I want to add a file).

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يونيو 24
3780
0
مارس 16
4630
1
نوفمبر 22
11938
3
أغسطس 20
9771
1
يونيو 17
7361