In tree view or one2many lines, I have a binary field that has an attribute of widget="binary".
However, when I download from the tree view it the file name becomes 'my.model-1-my_field.pdf' and not the original file name.
<field name="my_field" widget="binary"/>
Hi, there,
The above answer is available and there is another solution, which allows you to upload more than one file one time.
Try this(for example):
Step1( add in the py file):
Step2(add in the XML file):
Hope it is useful.