Odoo Help


how to get filename in create ?

mohammed osman
on 4/6/14, 10:11 AM 1,251 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 (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
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 4 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 4/7/14, 2:10 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: 1251 times
Last updated: 3/16/15, 8:10 AM