Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7288 Vues

When attaching pictures to products and/or variants, the pictures are AFAIK stored in the database. The database size can get huge if there are a lot of products, or when the products change every year and the old ones need to be preserved for legacy reasons. Is there a way to tell Odoo that it should save the pictures as files on the file system (exact location is a configuration), and not in the database? It would also be nice that, when the same picture is used for multiple products, the picture is only stored once.

 

 

Avatar
Ignorer
Meilleure réponse

If you are talking about V7 , yes it is in database... and here is a topic with more info, and solutions for your problem.

If you are using V8, then attachments are stored on fs by default.. .location of stored data is ~/.local/share/Odoo/dbname....
or you can set custom location by adding data_dir = /path/to/locatin in your config file.. 

Hope it helps.. 

Avatar
Ignorer

Attachments are different than product images added through the product edit form, correct? Aren't the images stored as base64 strings in the product_template table?

Auteur

That's what I'm thinking as well: attachments (documents) are stored on the file system with module Document Management or something similar. Product pictures seem to be stored in the database as base64 without alternative. Which makes my point: when you work with 4000+ products and a collection that changes every year, the database size gets enormous without much added value.

Publications associées Réponses Vues Activité
7
déc. 22
12106
6
avr. 16
13054
1
mars 24
1833
1
févr. 23
2130
1
déc. 22
11747