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

[8.0/Master] What is the best method to import from CSV into a one2many relationship?

By
Luke Branch
on 12/14/14, 10:10 PM 1,016 views

I've recently been working on this module:

https://github.com/OdooCommunityWidgets/website_multi_image/tree/8.0

which adds the ability to store a set of images on a product in a one2many relationship. I work with a large inventory all with a large number of photos that need to be displayed against a given product in an online catalog. This module creates the one2many to store the images, however I am unable to find any forum posts or documentation on importing/exporting into/out of a one2many relationship such as the one implemented in this module.

I would like to figure out how to import the default base64 at the moment, as I will be working on modifying these modules:

https://github.com/maxmumford/oe_import_product_images

https://github.com/maxmumford/odoo_product_images_csv

to make importing from image URL's or local file paths easier to allow for a more user-friendly way to mass import/update product image galleries in Odoo 8.0. The eventual goal of this will be to create a module to add extra functionality to the default import/export functionality of Odoo to allow for a Magmi (a Magento tool) like syntax for importing product images into a gallery against a product or product variant.

Any suggestions or advice on how to achieve an import into a one2many relationship would be very much appreciated.

 

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: 12/14/14, 10:10 PM
Seen: 1016 times
Last updated: 3/16/15, 8:10 AM