Sunday, September 4, 2011

Dia plug-in installation for OpenERP 6 on Windows

About a year and a half ago, I wrote a step-by-step manual to install the Dia plug-in for OpenERP 5 on Windows. This walk-through was available in the implementation methodology memento hosted in the Partners Portal.
Today's post is an update of this tutorial for OpenERP 6 (tested on the OpenERP 6.0 series with Windows 7).
As a reminder, there are in fact 2 applications to the Dia plug-in:
  1. A view importer that allows you to start your screen designs from existing views directly imported in real-time from a specified OpenERP instance. This is very useful to avoid wasting time drawing everything from scratch during the analysis phase of your project.
  2. A module generator that allows you to create the skeleton of a module based on a UML diagram you have drawn.
Here are the steps (to be followed in this order):
You can have several versions of Python installed concurrently. So there is no problem if you have a more recent version already installed.
During the installation, make sure to:
    Select “Yes, make backups”
    Select “Python interpreter and libraries”
    Unselect “Tcl/Tk”
    Unselect “Python HTMLHelp file”
    Unselect “Python utility scripts”
    Unselect “Python test suite”
    In Advanced Options, select “Admin install”
    • Install the exact following versions of the following dependencies (not included in Python 2.3.5):
    Install PyGtk 2.8.6:
    http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.8/pygtk-2.8.6-1.win32-py2.3.exe
    During the installation, select the component "Python plug-in".
    At the end of the installation, start Dia and close it immediately.

    As you can see, the steps haven't changed that much. What has been adapted mostly is the plug-in code.