From Gentoo Wiki
Jump to:navigation Jump to: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 --autounmask=y --autounmask-write trytond tryton sao
root #dispatch-conf
root #emerge --ask trytond tryton sao

For more information: Knowledge Base:Accepting a keyword for a single package

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 connect to postgresql, add this section to the configuration file:

FILE /etc/trytond/trytond.conf
uri = postgresql://

To use the web client, 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

Setup the database following: Upstream database documentation

You can start the server now:

root #rc-service trytond start

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

root #rc-update add trytond default

Client configuration

Configure the tryton client just running the application:

user $tryton

The client ask about the server connection. Create a new profile with the next data:

Host: localhost:8000
Database: database name
Username: admin

Modules installation

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

root #emerge --ask --autounmask=y --autounmask-write app-tryton/account
root #dispatch-conf
root #emerge --ask app-tryton/account

After that, tell the database that there is new modules installed, for that:

root #/usr/bin/trytond-admin -c <config_file> -d <db_name> --update-modules-list

External resources