Skip to Content
Menu
This question has been flagged
4 Replies
5575 Views

I am trying to wrap up part of a migration task for our process of setting up odoo 13.  I would like to be able to import product attachments into odoo.  My data comes in two forms, referenced from URLs on my Google Drive and base32 encoded out of our previous ERP PostgreSQL database.


For example, I was hoping I could import attachments the same way I imported product images months ago.  

ID, Extra Product Media/Image, Extra Product Media/Name

Product.Template ID, URL, Image Name 


I have tried the functionality in Settings>Technical>Database Structure>Attachments.  However, While I can import attachments, at least in base32 format, neither the import, nor the uploaded attachments afterwards seem to have a facility for actually "attaching" the file to anything by indicating the Resource Model and Resource ID.  I cannot seem to select these fields for import, nor alter them after importing. 


I have not yet tried importing the attachmnets to products through the products (module?), however the Product.Template column Main Attachment seems to only export a single file out.  I suspect the functionality for importing is the same, though I have not tested yet.


What would the best way to handle this be?

Avatar
Discard
Best Answer

same question here but the app "

This module has been unpublished from Odoo Apps and cannot be purchased anymore."

Avatar
Discard
Author Best Answer

ITStore,

   Does this app allow importing via Excel or CSV?

Avatar
Discard

We can make it

Best Answer

Hello Jason,

Try this app: https://apps.odoo.com/apps/modules/13.0/import_attachment_url

This will helps you to import attachments from any URL and import to any record of any document model. Also you can add multiple attachments to any records of any document model using browse file options.

In this case you can import/add attachments to your products/variants

Thanks

Avatar
Discard