Dear Stéphane, Thanks a lot for your hint and patch. Based on the code, the changes in document.py solve the most annoying behavior, that files are deleted that are still referenced.
I will test the patch and keep you updated. Best Regards Etienne On 16.07.2013 12:59, Bidoul, Stéphane wrote: > Etienne, > > You may want to look > at https://bugs.launchpad.net/bugs/1062258 regarding file storage in 6.1. > > -sbi > > > On Mon, Jul 8, 2013 at 10:58 PM, Etienne Hirt <[email protected] > <mailto:[email protected]>> wrote: > > Dear all, > > Looking at the external file storage in 6.0/6.1 I found that: > * the same file can be added several times without any notification. Is > often intentional. > * when deleting one of these (intentional) duplicate objects the file is > deleted, too > * when deleting a document from an object, this object might be linked > to a message and therefore only the res_id/model relation should be > removed. > > The structure in 6.0/6.1 seems very complex compared to > ir_attachement/document in Version 7.0. Additionally at least the > deletion of files still linked is solved. > > Has anybody performed a backport as basis for further work and/or > otherwise worked on the above mentioned for us missing features? > > Best Regards > > Etienne > > _______________________________________________ > Mailing list: https://launchpad.net/~openerp-community > Post to : [email protected] > <mailto:[email protected]> > Unsubscribe : https://launchpad.net/~openerp-community > More help : https://help.launchpad.net/ListHelp > > _______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp

