Odoo Help

Welcome!

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.

0

Is it possible to get image name, when i browse an image in odoo-8?

By
samba
on 2/2/15, 8:03 AM 386 views

I want store image name when we browse for an image. For example While creating a product, when i browse for product image, odoo storing binart data of image in database. I want to grab the product image name when user browse product image is it possible?. I can override create and write methods of product_template table.

0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 2/3/15, 2:51 AM

I  dont think you can retrive name of the image once it is saved to database, since binary decoding will concentrate more on content rather than the external data such as image name/size etc..

Alternate solution: Have an additional field for storing Image_name, so at the time of attaching the file, populate the name in the coressponding field... That way you can retrive it for further use....

Thank you Deep, I have added extra field mid_image_name in product.template. My question is how can i populate that name in this field automatically. Can you please tell me the way to get that image name automatically to this mid_image_name field?

samba
on 2/3/15, 2:56 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

1 follower(s)

Stats

Asked: 2/2/15, 8:03 AM
Seen: 386 times
Last updated: 3/16/15, 8:10 AM