Skip to content
Jean Cavallo edited this page May 13, 2022 · 19 revisions

Tryton framework training

This repository aims to give you a basic understanding of the tryton framework. After completing this training, you will be able to:

  • Understand how to implement a data model using tryton
  • Design views, with dynamicity
  • Fine tune tryton fields
  • Write wizards to ease user input
  • Have a nice user interface for your users
  • How to extend a module in another one

How to use this repository

Using this module requires a basic git understanding. If you are not familiar with, you should start with training on git, here or here. If you just want the minimum, you can use this cheat sheet to find your way around.

Also, tryton uses a database server (usually PostgreSQL) and requires that you know your way around a SQL database, know how to perform slightly complex qeries (using joins, having clauses, etc...), and what transactions are. You may complete this tutorial to refresh your skills if needed.

Obviously, tryton being a python framework, a minimum python knowledge is expected as well, though it is not necessary to master all its subtleties.

When starting your training, you will need to:

  • Install a tryton development environment
  • Clone the training repository in it
  • Create a database to work on

The guideline of the module is to show you how a library management module suite could be created using the tryton framework, and explain how everything's done along the way. The final steps will include maintenance oriented exercises and some extension work.

For each step, you will write code following the supplied instructions. When completing the step, you will be able to compare your code against a reference implementation, which should allow you to analyze the differences and hopefully understand where you went wrong. There will sometimes be references to the Tryton documentation, in which case it is highly recommended to read what is referenced there.

Standard step order:

  • Update to stepX git branch
  • Read the step contents, writing code in your working folder as required
  • Compare against the stepX_completed git branch, and check for differences. If there are any, analyze them by replaying the step contents until you find it
  • Do you homework. The solution will be available in stepX_homework, with an explanation on the answer and rationale behind decisions in the referenced wiki page
  • Go to next step

Note: you may do "more" in your homework if you feel like it. At least check that you can update your module (and view / test your changes once you went through the UI steps of the module). However, when starting a new step, it is recommanded to start from a fresh checkout of the associated git branch. This means losing what you wrote that was not asked for in the homework

Training steps

The training steps depends on the version of tryton.

Latest version (5.0)

Previous versions:

4.4

Clone this wiki locally