Skip to main content

Posts

Assessments

Chapter 1 What are the relevant layers to consider when designing an Odoo application? First focus on the Data layer, structuring the data model, the models needed and their relations.  Entity-relationship diagrams  ( ERDs ) can be a useful tool for this. Then think about the Presentation layer—how the user interface will be organized to fit the use cases to be supported. Finally, think about the Logic layer, supporting the required business rules. These can be validations, automation, or helper features. How is Developer mode enabled? Developer Mode, making available the  Settings | Technical  menu and the  Debug  contextual menu, can be enabled in the main  Settings  screen, using a link in the bottom-right. This has been so since Odoo 10.0; in Odoo 9.0 and before, it is enabled from the  About  dialog, accessed from the user menu in the top-right. It can also be enabled directly on the page URL, by changin...

Server and module updates

Server and module updates Once the Odoo server is up-and-running, you'll need to install  updates  on Odoo. This involves two steps—getting new  versions  of the source code (for the server or modules) and installing them. Creating a staging environment If you have followed the  approach  described in the  Installing from the source code  section correctly, you should now be able to fetch and test new versions of source code in the staging repository. It's strongly advised that you make a copy of the production database and test any upgrades on it. If  odoo-prod  is your production database, an  odoo-stage  copy can be created with the following commands: Copy $ dropdb odoo-stage $ createdb --owner=odoo odoo-stage $ pg_dump odoo-prod | psql -d odoo-stage $ sudo su odoo $ cd ~/.local/share/Odoo/filestore/ $ cp -al odoo-prod odoo-stage # create filestore hardlinks $ exit Before we can use the pr...

Configuring and enforcing HTTPS

Configuring and enforcing HTTPS Web traffic should not travel  through  the internet in plaintext. When  exposing  our Odoo web server to be used on a network, we should use the HTTPS protocol to have the traffic encrypted. In some cases, it might be acceptable to use a self-signed certificate. Keep in mind that using a self-signed certificate can pose some security risks, however, such as man-in-the-middle attacks, and may not be allowed by some browsers. For a more robust solution, you should use a certificate signed by a recognized certificate authority. This is particularly important if you're running a commercial or e-commerce website. Note The  Let's Encrypt  service at  https://letsencrypt.org  provides free certificates. An Odoo add-on module exists to handle the automatic requesting of SSL certificates for the Odoo server, but at the time of writing, it wasn't yet ported to Odoo 12. You can learn more at  https:...