Odoo Help


how to get filename in create ?

mohammed osman
on 4/6/14, 10:11 AM 1,134 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)
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

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

0 follower(s)


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