Created by Elias on 2011-04-29 and last modified on 2011-07-15

AEXIM, the Attachment Exporter and Importer

This OpenERP module exports a selection or all attachments as files to a directory.

It can used for example, when there's already attachments stored in the database and you want to
install the document-module without loosing all the stored attachments (on OpenERP v5).
To achieve this follow these simple steps:
 1) Start export-wizard to write all attachment-files to defined directory
 2) remove all attachments from database.
 3) install the document-module
 4) create one empty attachment (else the import wizard isn't accesible)
 5) Start import-wizard to load all attachment-files from defined directory

The exported files have attachment-meta-data encoded in the filename, which consists of:
 * Attached Model
 * Attached Id
 * Attachment Name,
 * File Name

This way it can re-import the files as attachments with their meta-data intact.

NOTE: when importing the exported-attachment-files and the document-module is installed
      OpenERP will create these files again, but now in the ./bin/filestore directory!
      So effectively you'll need double the space on disk!

Get this branch:
bzr branch lp:~neobis/+junk/neobis_aexim
Members of Neobis ICT Dienstverlening BV can upload to this branch. Log in for directions.

Related bugs

Related blueprints

Branch information

Neobis ICT Dienstverlening BV
Review team:
Bart Lengkeek

Recent revisions

8. By Elias on 2011-07-15

[FIX] - Allow wizard in list mode.

7. By Elias on 2011-07-15

[IMP] - Data separator string/char instead of default newline.

6. By Elias on 2011-07-15

[FIX] - Better documentation.

5. By Elias on 2011-07-06

[REF] - Better description of the module/workings.

4. By Elias on 2011-07-06

[REF] - Always close file, exceptions or not.

3. By Elias Hermoso Illera <elias@neosws06> on 2011-04-29

[FIX] - Same Copyright Headers in all files.

2. By Elias Hermoso Illera <elias@neosws06> on 2011-04-29

[IMP] - Implemented import skipping all attachments that have a missing reference!

1. By Elias Hermoso Illera <elias@neosws06> on 2011-04-22

[IMP] - First implementation for OpenERP 5 Only.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.