[Trunk/6.1] External file storage not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Medium
|
OpenERP R&D Addons Team 1 | ||
OpenERP Community Backports (Addons) |
Fix Released
|
Undecided
|
Unassigned | ||
6.1 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
In the document module the "external file storage" does not store documents at the right place.
Applicable to 6.1 and probably trunk, as the code did not change.
How to reproduce:
- install the document and project modules
- in Knowldege > Configuration, create a new Storage Media of type External File Storage named External File Storage
- in Knowldege > Configuration, remove all directories except the root (Document)
- change the storage of the Document Directory to External File Storage
- create a new Directory named Projects of type Folder per Resource and set Project as Resource
- create 2 projects named Project1 and Project2
- attach a pdf file to Project1
- attache the same pdf file with the same name to Project2
- browse over FTP: files are visible in folders Projects/Project1 and Projects/Project2 -> ok
- browse the file system: only one PDF can be found at the root of the file store -> strange
- in Project1, remove attachment
- in Project2, try to open the attachment -> system error
-sbi
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 52 lines (+18/-8)1 file modifieddocument/document.py (+18/-8)
- Stefan Rijnhart (Opener): Approve
- Pedro Manuel Baeza: Approve
-
Diff: 43 lines (+18/-8)1 file modifieddocument/document.py (+18/-8)
summary: |
- external file storage not working + [Trunk/6.1] External file storage not working |
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
Changed in openobject-addons: | |
status: | Fix Committed → New |
Changed in ocb-addons: | |
status: | New → Fix Committed |
Changed in ocb-addons: | |
status: | Fix Committed → Fix Released |
Hello,
Here you can find a fix for that bug. https:/ /code.launchpad .net/~openerp- dev/openobject- addons/ trunk-bug- 1062258- api
(See Document_storage -> unlink)
Good luck,
Arnaud Pineux (API)