Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to select several files when using a many2many_binary field?

By
Juan Formoso
on 3/13/15, 11:44 AM 600 views

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

Cyril Gaspard (GEM)
on 3/14/15, 5:28 PM
2

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 3/14/15, 9:19 AM

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).

Juan Formoso
on 3/16/15, 5:52 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/13/15, 11:44 AM
Seen: 600 times
Last updated: 3/16/15, 8:10 AM