From Gentoo Wiki
Jump to: navigation, search

Tryton is a three-tiers high-level general purpose application platform under the license GPL-3 written in Python and using PostgreSQL as database engine.

It is the core base of a complete business solution (ERP) providing modularity, scalability and security.


First step: install PostgreSQL, following wiki entry.

root #emerge --ask postgresql-server

Second step: install eselect-repository

root #emerge --ask app-eselect/eselect-repository

Third step: activate the overlay

root #eselect repository enable tryton

Fourth step: install Tryton server and clients

root #emerge --ask trytond
root #emerge --ask tryton sao

Server configuration

The server options are setup in /etc/conf.d/trytond The options are:

There is no minimal configuration required but it will use SQLite database.

To use the web client, you must add this section to the configuration file:

FILE /etc/trytond/trytond.conf

Don't forget start the database server.

For PostgreSQL:

root #/etc/init.d/postgresql start

For MySQL:

root #/etc/init.d/mysql start

Setup the database following: [1]

You can start the server now:

root #/etc/init.d/trytond start

If you want to start the server when de system boot up:

root #rc-update add trytond default

Client configuration

You can configure the tryton client just running the application:

user $tryton

The client ask you about Json-rpc and database connection. Create a new profile with the next data:

Server: localhost:8000
Database: database name
Username: admin
You need to create a new database.

Modules installation

Initially, you only have 2 modules: ir, res. To install other modules you can watch the app-tryton folder: /var/lib/layman/tryton/app-tryton. You can find the tryton modules. Install what you need:

root #emerge --ask app-tryton/account

... After that you need to tell the database that there is new modules installed, for that:

root #/usr/bin/trytond -c <config_file> -d <db_name> -u account


root #/usr/bin/trytond -c <config_file> -d <db_name> --all

External resources