Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
8483 Lượt xem

How can I take a folder of our product images and easily import them into our database with our products? We have 22,000+ products so doing them manually is not an option. I tried following this post: \how to import images for products in binary to the database but when I run the script it only gives the code for the first item in the list and the format refuses to work properly when importing. Is there another way to convert and import all of the images in? The images are all named (internal-reference).jpg so they can line up easily with the products. Using self hosted V10 enterprise on Ubuntu.

Ảnh đại diện
Huỷ bỏ

you can import it with an import csv where image is base64.encodestring(img.read())

Tác giả

how can I easily convert the images files to the base64 in the csv file?

Câu trả lời hay nhất

This seems quite good: https://www.odoo.com/de_DE/forum/hilfe-1/question/how-to-import-images-for-products-in-binary-to-the-database-1868

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 11 24
14019
12
thg 12 23
39320
4
thg 2 18
4572
2
thg 5 25
696
1
thg 11 24
1067