Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7555 Widoki

I had created many2one field from ir.attachment.

 

But i would like to display this field as an file browse field and directly upload file instead of choosing list of available files. Has someone implemented this?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thank you Bole.

I need field like fields.binary instead of selecting from the list in case of many2one field. It would be easy for end users.


 

Awatar
Odrzuć

if you try to my answer.. you will find that it is not a m2o list. .instead... it is a button on top of form view ( until then you only had More, now you will have Attachments, More .... and that attachments is the easiest way of adding it to ANY doc in your erp...

Najlepsza odpowiedź

Perhaps the easiest way to do it is install module document.
After instaling, every document (model) will have extra button/menu on top, Attachments... you can use it to directly upload any file,
and such uploaded file will be visible on attachments list after save.. 

Try, maybe it deos what you need

Awatar
Odrzuć