Odoo Help

0

how to get filename in create ?

By
mohammed osman
on 4/6/14, 10:11 AM 1,196 views

hi i need file name on upload any file

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

Thanks.

3

Sudhir Arya (ERP Harbor Consulting Services)

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

Director of the ERP Harbor Consulting Services.

ERP Consultant / ERP Customization / TechnoFunctional Expert

Top 10 Odoo contributor On Stackoverflow 

LinkedIn

Blog

Stackoverflow

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.

Sasuke
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
0

Jagdish Panchal

--Jagdish Panchal--

2718
| 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.

Register

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)

Stats

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