Montag, 20. Juni 2011

Synchronize Product Module added

A new module for setting up the product models including the dependencies  for synching is now available at http://hg.holtzberg.de/synchronize_product

After installing the module it is needed to add a remote server in the admin menu. That server has to be set in the root entry of the added product models.

3 Kommentare:

  1. Hi,

    great news! Is there a special reason why you put the configuration data with the init() method into Tryton? init() is only used for migration purposes, for now. The usual way to insert configuration data in Tryton is done in XML. See the upstream account_de_skr03 module for example.

    Cheers Udo

    AntwortenLöschen
  2. I tried to do the creation with a xml file but I failed. Because automatic creation of the dependencies existing records need to be updated within the xml file. I think its not possible to update existing records out of xml. The solution with the init() method was just a work around to get things work.

    AntwortenLöschen
  3. It should be possible to update existing records out of xml. This is used e.g. for adding access groups to user admin or inheriting existing views. All are records of some models which are updated.

    I understand the problem, that there are no named ids for ir.model and ir.model.field records. So you can not use the model name to prefix a named id[1] when there is missing a named id. For this cases it is possible to search for database ids[2] and use them instead of named ids.

    I would try it with something like this:[3].

    [1] http://hg2.tryton.org/2.0/trytond/file/e3d6a380af14/trytond/res/ir.xml#l428
    [2] http://hg2.tryton.org/2.0/trytond/file/e3d6a380af14/trytond/res/user.xml#l202
    [3] http://paste.pocoo.org/show/417350/

    AntwortenLöschen