Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Translate texts through the web client user interface


The simplest way to translate is to use the translation feature provided by the web client. These translation strings are stored in the database and can later be exported to a .po file, either to be included in an addon module or just to later be imported back manually.

Text fields can have translatable content, meaning that their value will depend on the current user's language. We will also see how to set the language-dependent values on these fields.

Getting ready

We need to have the Developer Mode activated. If it's not, activate it in the Odoo About dialog.

How to do it...

We will demonstrate how to use translate terms through the web client using the User Groups feature as an example:

  1. Navigate to the screen to translate. Select the Settings top menu and then open Users | Groups to open the corresponding view.

  2. On the top menu bar, click on the Debug menu icon and select the Technical Translation option:

  3. A list of the available translation...