Because quiet often importing data from external sources, decided to create a module as flexible as possible so I can change set of fields depending on CSV source and map it into product_template table columns.
So i have a source selector [ebay, opencart, stock, end more], choosing source, loading data from CSV, (product_name=> name, price=>sale_price ... etc) into fields.
Once CSV is loaded i can use all the records to create new product by selectiong records from list or all in one go.
self.env['product.template'].create({'name': record.product_name,'sale_price': record.price,.......})
The only problem I have now is: if I add image_stream to the query/API it generate an error, once I remove image_stream everything works fine.
The question is: how can I use image binary stream(converted image) while new product is created?
Tried already a few methods but regardless of what I'm doing it still displaying error:
2016-05-11 08:18:05,679 49329 ERROR Farmore openerp.http: Exception during JSON request handling.
MissingError: ('MissingError', u'One of the documents you are trying to access has been deleted, please try again after refreshing.')