Chapter 6 - Going live¶
Translations¶
Congratulations! Your client has a beautifully designed homepage and contact page, and the eCommerce is fully adapted to the Airproof design. Amazing!
Now, the client wants the website translated into French. To do so:
Add French to the website in the settings and enable the language switcher in the header via presets.
Then for the translations you have several options (normally to do after the production launch). For the exercise we will test 2 of them in local:
Translate the content of the
Airproof Miniproduct page through the editor.Translate the content of the homepage carousel through the views.
Bemerkung
You can also create translations through the export/import
of a .po file. However, this method only works once during the module’s import. It’s quite
complicated to make changes afterwards via the .po file. That’s why we advise you to make translations through the editor or directly via the views.
The preset to add for the language switcher is:
/website_airproof/data/presets.xml¶<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Activate language selector -->
<record id="website.header_language_selector" model="ir.ui.view">
<field name="active" eval="True" />
</record>
</odoo>
For translations via the editor:
Switch the website to French.
Go on the product page.
Click on .
Modify all the parts highlighted in
yellow.
For translations via the views:
Activate developer mode.
Go to the settings then in the menu .
Search for the name of the page you want to translate. In this case, search in the
View Architectureforhomepage.Once you have found your page, click on EN (located at the top of the page architecture).
This opens a popup in which you first see the English section. Then further down, all the translations you can make for French.
Module import¶
Great job! The website is now completely finished and your module is ready for installation in the client’s SaaS database.
Just before that, test the import process on a new database.
Siehe auch
See reference documentation on how to deploy a module on an Odoo SaaS database.
Tipp
Ensure the
base_import_moduleis installed on the database before the module installation.Verify all required applications are installed.
Skip the theme installation steps and start from scratch.
Conclusion¶
Congratulations on completing the Build a module for a website theme tutorial! You’ve successfully navigated through every stage, from setting up your development environment to launching a fully customized Odoo website theme.
Throughout this journey, you’ve mastered: