Tryton

From Gentoo Wiki
Jump to: navigation, search
Resources

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.

Installation

First step: install PostgreSQL, following wiki entry.

root #emerge --ask postgresql-server

Second step: install layman, following wiki entry.

root #emerge --ask layman

Third step: install Tryton layout, following tryton instructions.

root #layman -a tryton

Fourth step: install Tryton server and client

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

Server configuration

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

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

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
Note
You need to create a new database.

Modules installation

Initially, you only have 3 modules: ir, res and webDAV. 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

or

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

External resources