Getting ready to install our module

Right now, our module is very simple and just adds two fields to our sales order form. We should still quickly review the files you should have in your module directory:

  • __init__.py
  • __Odoo__.py
  • silkworm.py
  • silkworm_view.py

When you run Odoo in Ubuntu, it is good practice to run the service under a special account that has limited permissions. This is set up automatically when you use the Debian install. Therefore, we need to change the permissions on our module directory so that Odoo can properly access the files. Use the following command to set the permissions:

sudo chown odoo:odoo /home/mymodules -R

To install the module, you must also restart the Odoo server. If you don't restart your server, then ...

Get Working with Odoo 11 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.