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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 7 25
|
1931 | ||
|
1
thg 5 20
|
3339 | ||
|
0
thg 3 20
|
3311 | ||
|
1
thg 5 19
|
4734 | ||
|
1
thg 2 16
|
4266 |