Skip to main content

Subsections of 2 System and Requirements

2.1 System Requirements and Installation

This page describes the installation of the Tryton server (trytond) and the web client sao, the configuration and the setup of the database. Required are Python 3.13, Node.js with npm, git and a PostgreSQL server with a database user tryton.

For development systems only

The descriptions on this page cover a development or test system. Productive operation requires additional measures (among others securing server, database and access, encryption, backups). Every operator is responsible for the security of their own systems.

Install the Tryton Server

  1. Create and enter the project directory:

    cd /path/to/your/project/tryton
  2. Create a new Python virtual environment:

    python3.13 -m venv .venv
  3. Activate the environment:

    source .venv/bin/activate
  4. Install Tryton with all modules via the requirements.txt:

    pip install -r requirements.txt

Install the Web Client sao

  1. Enter the project directory; sao is installed in a directory of its own below it:

    cd /path/to/your/project
    git clone --single-branch --branch 8.0 https://github.com/tryton/sao.git

    The version of sao (here 8.0) must match the version of trytond.

  2. Install the web app in the directory with Node:

    cd sao
    npm install --production --legacy-peer-deps
  3. Build the web app with Grunt:

    npx grunt

Configure the Server

trytond.conf

The file trytond.conf holds the database connection, the web server with the sao directory and the settings of the module, e.g.:

[database]
# SQLite instead of PostgreSQL:
# uri = sqlite://
# path = /path/to/the/databases
uri = postgresql://tryton:<password>@localhost:5432/tryton

[attachment]
# filestore = True      (False = content stored directly in the database)
# store_prefix =        (sub-directory, default: name of the database)
# retention_days = 90   (deleted files are only removed after x days)

[web]
listen = 0.0.0.0:8000
# sao directory from the installation above
root = /path/to/your/project/sao

[queue]
worker = True

[bus]
allow_subscribe = True

[real_estate]
genesis_token = <access key>
  • [queue] worker runs background tasks, e.g. Ausführen (Execute) of an adjustment run.
  • [bus] allow_subscribe is needed for notifications in the client.
  • [real_estate] genesis_token is the access key for GENESIS-Online (Destatis) used to fetch the price indices, see 6.7.2 Index Rent.
Warning

Comments go on a line of their own starting with #. A comment after a value (root = /path # comment) is read as part of the value. Password and access key belong only in the local file, not in a repository.

Protecting Passwords

Passwords and access keys do not have to be in trytond.conf:

  • Database without password: if Tryton and PostgreSQL run on the same machine, trytond connects via the Unix socket (uri = postgresql:///); PostgreSQL checks the operating system user via peer (entry local … peer in pg_hba.conf).
  • ~/.pgpass: the URI only contains postgresql://tryton@localhost:5432/, the password is in the file ~/.pgpass of the user running trytond (localhost:5432:*:tryton:<password>, permissions 600).
  • Environment variables: trytond takes values from variables named TRYTOND_<SECTION>__<OPTION>, e.g. TRYTOND_DATABASE__URI or TRYTOND_REAL_ESTATE__GENESIS_TOKEN. They are set in the start script, e.g. from the Mac keychain (security find-generic-password … -w) or a password manager.
  • Containers: mount secrets at runtime as Docker secrets or Kubernetes Secret and set the environment variables from them – never write them into the image or Dockerfile.

In general trytond.conf belongs only to the user running trytond (permissions 600) and never into a repository. The database user only needs rights on its own database.

logconf.conf

Logging is defined in a file of its own, here rotating daily in tryton.log (30 files) and additionally to the console:

[formatters]
keys=simple

[handlers]
keys=rotate,console

[loggers]
keys=root

[formatter_simple]
format=[%(asctime)s] %(levelname)s:%(name)s:%(message)s
datefmt=%a %b %d %H:%M:%S %Y

[handler_rotate]
class=handlers.TimedRotatingFileHandler
args=('tryton.log', 'D', 1, 30)
formatter=simple

[handler_console]
class=StreamHandler
formatter=simple
args=(sys.stdout,)

[logger_root]
level=INFO
handlers=rotate,console

Manage the Database

The database is managed with the PostgreSQL tools; user and name (here both tryton) must match the trytond.conf.

Caution

Run the following actions with care – dropping and restoring in particular overwrite data irrevocably.

ActionCommand
Create the databasecreatedb -U tryton tryton
Drop the databasedropdb -U tryton tryton
Back up the databasepg_dump -U tryton -Fc -d tryton > tryton_$(date +%Y%m%d_%H%M%S).dump
Restore the databasepg_restore -U tryton -d tryton tryton_<date_time>.dump

The backup creates a dump in PostgreSQL format with the database name and date/time in the file name.

trytond is now installed, the configuration is set and an empty database is set up.

Initialise the Database and Start the Server

  1. On a new database trytond-admin creates all tables and initialises Tryton:

    trytond-admin -c trytond.conf -d tryton --all

    The shell asks for the e-mail address and the password of the user admin:

    email for "admin" of "tryton" (empty for none): <email>
    password for "admin" of "tryton": <password>
    password confirmation for "admin": <password>
  2. Start the server:

    .venv/bin/trytond -c trytond.conf --logconf logconf.conf -d tryton --dev

    --dev is the development mode (among other things, changed files are reloaded); for production start without --dev.

  3. Open http://localhost:8000/#tryton in the browser and log in as admin.

Initial Setup in the Client

After the first login the wizard Module Configuration guides through the initial setup. The forms are in English at first.

  1. Log in with database tryton, user admin and the password from trytond-admin.

    Login Login
    Figure 2.1-1: Login
  2. The wizard Module Configuration starts; continue with OK.

    Module Configuration Module Configuration
    Figure 2.1-2: Module Configuration
  3. Configure Languages: mark the languages whose translations are to be loaded, e.g. English and German, then Load.

    Configure Languages Configure Languages
    Figure 2.1-3: Configure Languages
  4. Configure Modules: mark the required modules, e.g. real_estate – dependent modules are activated as well –, then Activate.

    Configure Modules Configure Modules
    Figure 2.1-4: Configure Modules
  5. Perform Pending Activation/Upgrade lists all modules to be activated (here 73); start with OK. The server creates the tables, the log shows the registered models. Finally the client reports “The modules have been upgraded / activated.”

    Modules to activate Modules to activate
    Figure 2.1-5: Modules to activate
    Server log during activation Server log during activation
    Figure 2.1-6: Server log during activation
    Activation done Activation done
    Figure 2.1-7: Activation done
  6. The Module Configuration continues; go on with OK.

    Continue Module Configuration Continue Module Configuration
    Figure 2.1-8: Continue Module Configuration
  7. Configure Company: after the note the company is created. In the field Party enter a new party with name, language and address and save it; choose currency (Euro) and timezone (Europe/Berlin). Employees are optional. Create with Add.

    Configure Company – note Configure Company – note
    Figure 2.1-9: Configure Company – note
    Configure Company Configure Company
    Figure 2.1-10: Configure Company
    Party of the company Party of the company
    Figure 2.1-11: Party of the company
  8. The progress is shown; continue with Next.

    Progress Progress
    Figure 2.1-12: Progress
  9. Create Chart of Accounts from Template: after the note choose company and account template, e.g. Kontenrahmen der Wohnungswirtschaft (WoWi), then set the default accounts for receivables, payables, revenue and expense and create them with Create.

    Chart of accounts – note Chart of accounts – note
    Figure 2.1-13: Chart of accounts – note
    Chart of accounts – choose template Chart of accounts – choose template
    Figure 2.1-14: Chart of accounts – choose template
    Chart of accounts – default accounts Chart of accounts – default accounts
    Figure 2.1-15: Chart of accounts – default accounts
  10. “The configuration is done.” – finish with OK.

    Configuration done Configuration done
    Figure 2.1-16: Configuration done

The menu with Immobilien (real estate) is now available. The user menu at the top right (Einstellungen…, preferences) allows, among other things, setting the user’s language.

Menu after the initial setup Menu after the initial setup
Figure 2.1-17: Menu after the initial setup

Further modules can be activated later, see 2.2 Activate Modules.

Starting Server, Worker and Cron

For full operation three processes run side by side, each in its own terminal in the project directory:

ProcessTask
Server (trytond)Login and use via the client
Worker (trytond-worker)Background processing (queue), e.g. Ausführen (Execute) of an adjustment run; requires [queue] worker = True
Cron (trytond-cron)Scheduled jobs, e.g. fetching the price indices, see 2.6 Jobs and Periodic Tasks

The server is started as described above:

.venv/bin/trytond -c trytond.conf --logconf logconf.conf -d tryton --dev

The worker for background processing:

export TRYTOND_CONFIG=/path/to/your/project/tryton/trytond.conf
.venv/bin/trytond-worker -c trytond.conf --logconf logconf.conf -d tryton --dev

The cron for scheduled jobs:

export TRYTOND_CONFIG=/path/to/your/project/tryton/trytond.conf
.venv/bin/trytond-cron -c trytond.conf --logconf logconf.conf -d tryton --dev

If the worker is not running, background tasks stay in the queue; if the cron is not running, no jobs are executed.

2.3 Users, Login and Permissions

Overview

Users and groups are part of standard Tryton. This page only gives an overview of what matters for real estate management; the other tabs are described in the Tryton documentation.

Every person working with the system is created twice:

  1. as a user under Verwaltung › Benutzer › Benutzer (Administration › Users › Users) – for login and access rights;
  2. as a party (business partner) and as an employee of the company – for responsibilities, tasks and correspondence, see 3.2 Companies and Employees.

Create a User

The header of the form holds Name, Benutzername (login), Passwort (password, made visible with Anzeigen), Aktiv, E-Mail and a picture. Below follow the tabs Benutzer (user), Aktionen (actions), Zugriffsberechtigungen (access permissions), Anwendungen (applications), Einstellungen (preferences) and Dashboard.

Tab User: Companies and Employees

User, tab Benutzer User, tab Benutzer
Figure 2.3-1: User, tab Benutzer

In the tab Benutzer (user) the system user is linked with their Mitarbeiter (employee), i.e. the party (business partner) from 3.2 Companies and Employees. Only then can the employee be used in processes and tasks, and the user receives and handles their tasks, see 10 Tasks and Processes.

  • Unternehmen (companies): the companies the user may work for.
  • Mitarbeiter (employees): the employee parties of the user. This list determines which user is responsible for a task: if an employee holds the responsible party role on the object, the user receives the task, see 5.1 Property – tab Partner. An employee should therefore be assigned to exactly one user.
  • Aktuelles Unternehmen and Aktueller Mitarbeiter (current company / employee): what the user is currently working with. The Aktueller Mitarbeiter is set (in the figure Verwalter 1) and entered e.g. as Erledigt von (done by) when a task is completed. Unternehmen Filter (company filter) defines whether only data of the current company is shown.
  • Aktueller Logistikstandort (current warehouse): for stock and inventory.
  • Telefon and Mobiltelefon (phone, mobile) of the user.
  • Aufgaben-Erinnerungen per E-Mail (task reminders by e-mail): in addition to the notification in the client, the user receives e-mail reminders for tasks whose type sends e-mails.
  • Signatur (signature): formatted text, e.g. for e-mails.

Groups and Permissions

User, tab Zugriffsberechtigungen User, tab Zugriffsberechtigungen
Figure 2.3-2: User, tab Zugriffsberechtigungen

In the tab Zugriffsberechtigungen Gruppen (groups) are assigned to the user; + adds a group, − removes it. The groups control which menus are visible and which data may be read or changed. The module ships these groups:

GroupPurpose
Immobilien Administration (Real Estate Administration)Maintain settings and master data of the module
Immobilienobjekt (Real Estate Object)Edit real estate objects
Immobilienvertrag (Real Estate Contract)Edit contracts
Immobilien Abrechnung (Real Estate Billing)Carry out the operating cost settlement
Immobilien Anzeigen (Real Estate View)Read everything in the module, change nothing
Rechnungswesen Anzeigen (Accounting View)Read accounting data, change nothing
Partner Zugriff (Party Access)Create, change and delete parties – all other groups see parties read-only

In the figure the user has the groups Immobilien Anzeigen, Immobilienobjekt, Immobilienvertrag and Partner Zugriff. The groups themselves are under Verwaltung › Benutzer › Gruppen.

2.4 Sequences

Sequences

Sequences assign the numbers of documents, transactions and master data of all modules.

Administration, Sequences Administration, Sequences
Figure 2.4-1: Administration, Sequences

Normal sequences are under Verwaltung › Nummernkreise › Nummernkreise (Administration › Sequences › Sequences). Besides those of the Tryton modules (party, shipments, purchase, sale, payment group etc.) the real estate module ships and sets up its own sequences:

SequencePrefixExample
Anpassungslauf (adjustment run)AL-${year}-AL-2026-0001, see 6.7 Rent Adjustments
Modernisierung (modernisation)MOD-${year}-MOD-2026-0001, see 6.7.4 Modernisation
Prüfvorgang (inspection)PR-${year}-PR-2026-0001, see 8.2 Performing Inspections

${year} is replaced by the current year, the running number has four digits with leading zeros. Prefix and padding can be adapted if required.

Strict Sequences

Administration, Strict Sequences Administration, Strict Sequences
Figure 2.4-2: Administration, Strict Sequences

Accounting needs strict sequences (Strikte Nummernkreise): they assign consecutive numbers without gaps, as required for account moves and invoices. They are under Verwaltung › Nummernkreise › Strikte Nummernkreise (Administration › Sequences › Strict Sequences); normal sequences under Nummernkreise, the kinds under Typen (types).

Typically there is one strict sequence per fiscal year for:

SequenceSequence type
Buchungssatz (account move)Buchungssatz
Lieferantenrechnung (supplier invoice)Rechnung (invoice)
Kundenrechnung (customer invoice)Rechnung
Lieferantenrechnung Storno (supplier credit note)Rechnung
Kundenrechnung Storno (customer credit note)Rechnung

In the figure the names carry the fiscal year and a running number (2025/1 … 2025/5, 2026/1 … 2026/5), all of type Inkrementell (incremental). The name must contain the full name of the fiscal year (e.g. “2025”, not “25”): with Jahresübernahme (renew fiscal year) Tryton copies the sequences and replaces the name of the previous year in the name with that of the following year – “2025/1 - Buchungssatz” thus automatically becomes “2026/1 - Buchungssatz”. The prefix is not adapted, see 4.5 Year-End Closing.

Strict sequence Buchungssatz Strict sequence Buchungssatz
Figure 2.4-3: Strict sequence Buchungssatz

A strict sequence has:

  • Name Nummernkreis (name) and Nummernkreistyp (sequence type, e.g. Buchungssatz or Rechnung), Aktiv. The name is translatable (icon on the right of the field), see the note below;
  • Unternehmen (company): every sequence is assigned to a company; with several companies each has its own sequences;
  • Präfix and Suffix (prefix, suffix), e.g. prefix 251 for year 25, sequence 1;
  • Typ (incremental), Feste Länge (Vornullen) (padding), Schrittweite (increment) and Nächste Nummer (next number);
  • Vorschau (preview) of the next number from prefix and number, in the figure 25101054 (prefix 251, number 1054 with five digits).
Maintain the Name in All Languages

The Name Nummernkreis is stored per language. The translation icon on the right of the field opens the list of languages; after the setup it often still holds English or older names without fiscal year. Jahresübernahme (renew fiscal year) replaces the fiscal year in each language separately. The name must therefore contain the full name of the fiscal year in every language, e.g. German “2025/1 - Buchungssatz” and English “2025/1 - Account Move”. Otherwise the sequence of the following year gets the old name again in that language.

The strict sequences for accounting are assigned in the fiscal year, see 2.5.1 Accounting.

2.5 Settings

Settings of the module, separate from daily use. Readers who only work with the system can skip this section.

Subsections of 2.5 Settings

2.5.1 Accounting

Info

This page is not complete yet: taxes, payment terms, journals, bank and payments and real estate accounting will be added.

Chart of Accounts

Menu Rechnungswesen › Einstellungen › Konten › Konten (Accounting › Configuration › Accounts › Accounts). The chart of accounts is created from a template during the initial setup, for real estate management from the Kontenrahmen der Wohnungswirtschaft (WoWi) (chart of accounts of the German housing industry), see 2.1 System Requirements and Installation.

Accounting, Accounts Accounting, Accounts
Figure 2.5.1-1: Accounting, Accounts

The accounts are structured as a tree: account classes 0 to 9, below them groups and the individual accounts. In the figure class 2 is expanded with the Mietforderungen (rent receivables), among them 2000 Mietenkontokorrent-Sammelkonto, 2001 receivables from former tenants, 2002 receivables from settled apportionments and the value adjustments 2090 and 2095. Kontentypen (account types) hold the structure for balance sheet and income statement, Konto Abstimmungsregeln (account reconciliation rules) the rules for clearing open items.

Configuration

Menu Rechnungswesen › Einstellungen › Einstellungen (Accounting › Configuration › Configuration). It holds the accounting defaults of the company; most of them are set with the chart of accounts during the initial setup, see 2.1 System Requirements and Installation.

Accounting, Configuration Accounting, Configuration
Figure 2.5.1-2: Accounting, Configuration
AreaSettings (example in the figure)
Partei (party)default receivable account (2000 Mietenkontokorrent-Sammelkonto) and payable account (4420), default customer payment term
Artikel (product)default revenue account (6000 Sollmieten) and expense account (8050)
Rechnung (invoice)customer payment reference, default tax rule customer and supplier, tax rounding (per document)
Buchungssatz (move)reconciliation sequence
Währungsumrechnung (currency exchange)journal, debit and credit account for exchange differences
Mahnung (dunning)default dunning procedure, fallback user
Rechnungsabgrenzung (deferral)accounts for deferred revenue and expense
Anlage (asset)sequence, depreciation frequency; day and month of asset moves
Zahlung, SEPA (payment)sequences for payment, payment group and SEPA mandate

The sequences are described in 2.4 Sequences.

Sequences

Account moves and invoices need strict sequences per company, see 2.4 Sequences. They are assigned in the fiscal year.

Fiscal Year

Menu Rechnungswesen › Einstellungen › Geschäftsjahre › Geschäftsjahre (Accounting › Configuration › Fiscal Years). A fiscal year is created for each year and company before postings are possible in it – the periodic posting of the contracts also needs an open fiscal year.

Accounting, fiscal year with periods Accounting, fiscal year with periods
Figure 2.5.1-3: Accounting, fiscal year with periods
  • Header: Name (e.g. 2025), Unternehmen (company), Startdatum and Enddatum (start and end date); at the bottom the Status (open, later closed or locked).
  • Tab Buchungszeiträume (periods): the periods of the year, usually monthly (2025-01 to 2025-12) with type Standard and state Offen (open). Postings are only possible in open periods; finished months are closed.
  • Tab Nummernkreise (sequences), see below; next to it the tab Steuern (taxes).
Fiscal year, tab Nummernkreise Fiscal year, tab Nummernkreise
Figure 2.5.1-4: Fiscal year, tab Nummernkreise

The tab Nummernkreise assigns the strict sequences of the year, see 2.4 Sequences:

  • Nummernkreis Buchungssatz (move sequence) for the numbers of posted account moves (in the figure 2025/1 - Buchungssatz);
  • Nummernkreise Rechnung (invoice sequences) per company and optionally per period: supplier invoices, supplier credit notes, customer invoices and customer credit notes (in the figure 2025/2 to 2025/5).

Buchungszeiträume lists all periods of all years; Jahresübernahme (renew fiscal year) creates the next fiscal year based on the previous one at year end, with periods and new sequences.

Taxes

Payment Terms

Journals

Bank and Payments

Credit transfers and direct debits are first posted against a transit account Bankbewegung (Geldtransit); only the bank statement posts from the transit account to the bank account. Open items on the transit account are payments not yet confirmed by the bank. Setup in the right order and posting flow: see 4.2 Payments.

Bank Accounts in the Chart of Accounts

Chart of accounts, bank accounts Chart of accounts, bank accounts
Figure 2.5.1-5: Chart of accounts, bank accounts

Under Klasse 2 › Flüssige Mittel › Guthaben bei Kreditinstituten (class 2 › liquid funds › bank balances) own accounts are created besides the template account 2740 (menu Rechnungswesen › Einstellungen › Konten › Konten, +):

AccountPurposeImportant settings
2741 bank account (one per bank, in the figure Berliner Sparkasse)Movements according to the bank statementAccount type as 2740
2749 Bankbewegung (Geldtransit, transit)Transit account for credit transfers and direct debitsAccount type as 2740, Abstimmen (reconcile) checked, no party required

Template accounts such as 2740 are not renamed: when the chart of accounts is updated after a module update, Tryton takes name and settings from the template again.

Real Estate Accounting