[product_images] image folder name should escape / char
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Product Attributes |
New
|
Undecided
|
Unassigned |
Bug Description
Hello
when you install product_images with default settings, it depends on product_sequence which by default generates a PR/id sequence for a product with a given id.
If you set product_images with a file storage, this results in a strange file layout where images files are wrapped in a 'PR' folder because a folder like PR/0001 will actually generate two folders PR and 0001 inside. The image files are put in the 0001 folder then.
For the product with a sequence without "/" instead, there is not such folder nesting. This is a bit inconsistent.
We may not touch the sequence module, but may be escape the "/" char in the folder name to avoid such wrapping. A workaround is of course not using a sequence with a "/" but this requires a proper additional configuration.
What do you think?
Hi Raph id/image_ id".
I was thinking about changing the way to store the image on the file system and use as path "product_
With that solution the sequence on the product will be not required anymore and the problem with "/" or accent trouble.
An other solution can be to use the document object of OpenERP (product_image will inherit the ir_document). But we should configure the document module in a way that all of the image are in a special directory in order to give the possibility to publish the image with nginx without OpenERP.
What do you think?