Permissions on ir.attachments must not only respect the access rights of the object they are attached to, but must also be careful about directory permissions as introduced by the document module. Minor fix in copy() method to avoid reading all fields of the attachment including the binary data itself, when only the name is needed. Also made the "(copy)" suffix translatable. bzr revid: odo@openerp.com-20110218141012-a7wjqn2f48iioca9
To be done: ----------- * Test to not create several times the same file / directory -> May be put a sql_constraints uniq on several files -> test through remove or put * Retest everything