Blog

Viewing posts for the category Tryton

Quick'n dirty way to test my dolibarr -> tryton import scripts

Just a very quick one-liner I use when testing my import scripts on tryton (on gentoo):

GUI and trytond_import_countries/currencies gives trytond.model.modelstorage.SelectionValidationError

So I got this error when trying to run trytond_import_countries and trytond_import_currencies ..

on getting party (company and people) data from dolibarr to import into tryton ..

I tried with just exporting from postgresql like this:

Using proteus to browse / edit / .. tryton's data

Going to be using this blog post to add bits and pieces of how to use proteus to handle data in tryton.

tryton -- ipython, proteus

So after being told on IRC that you can use (i)python and proteus to poke around a running tryton instance(thanks for that hint btw) I tried it and had some "fun" right away:
from proteus import config,Model
pcfg = config.set_trytond(database='trytond', config_file='/etc/tryon/trytond.conf')

gave me this:

Recent Posts

Archive

2023
2022
2021
2020
2019
2018
2014
2012
2011
2010
2009
2008
2007

Categories

Authors

Feeds

RSS / Atom