Odoo Help


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.


how to get filename in create ?

mohammed osman
on 4/6/14, 10:11 AM 741 views

hi i need file name on upload any file

'file_name': fields.char('File name', size=200), 'file_upload': fields.binary('Documents'),



Sudhir Arya (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
On 4/7/14, 4:40 AM

Hi Mohammed,

You just have to link your char field with your binary field to show file name. Just add an attribute filename="your_char_field_name" in binary field.

Like this:

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

Hope this will solve your problem.

Thanks Sudhir. It really helped me a lot and worked. +1 for this.

on 4/17/14, 4:40 PM

Thanks @ Sudhir Arya, this code is very helpfull +1 vote for this

Ankit H Gandhi(AHG)
on 2/9/15, 2:37 AM

Jagdish Panchal

--Jagdish Panchal--
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 4/7/14, 2:10 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

0 follower(s)


Asked: 4/6/14, 10:11 AM
Seen: 741 times
Last updated: 3/16/15, 8:10 AM