Odoo Help


How to download files which are attached in default attachments with original file extensions?

on 11/9/16, 4:45 AM 593 views


I need a solution for attachments.When i attach a file(.pdf or .jpeg or .png or .doc or .xls) in attachments on top of any form, once i download that file means, it is downloaded with some other unrelated name and without file extension.Can anyone have solutions to resolve this bug.Thanks in advance.


Ameera PP

--Ameera PP--
--Ameera PP--

Ameera PP
On 11/9/16, 5:23 AM

class myclass(osv.Model):

_name = "myclassname"

_columns = {




And in the form view in your xml:

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

<field name="binary_field" filename="file_name"/>


About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/9/16, 4:45 AM
Seen: 593 times
Last updated: 6/8/17, 11:56 PM