Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4344 Visualizzazioni

Hi,

I need to add a progress bar into my custom module that will show up while a file is being uploaded.

---The concerned field in my model is:

attachment = fields.Binary('File')

file_name = fields.Char('File Name')

---In my form view i'm using:

<field name="attachment " filename="file_name"/>
 <field name="file_name" invisible="1"/>

when i try to upload a big file the form keeps freezing until the file upload ends that's why i need to add progress bar.

Thank you in advance.

Avatar
Abbandona
Risposta migliore

Hi you need extend widget FieldBinaryFile 

Avatar
Abbandona