Contents of your module directory

Within our module directory, silkworm, we will create two files that are required in every Odoo module.

To navigate to our module directory, use the following command:

cd /home/mymodules/silkworm

These two files must always be named the following:

  • __init__.py
  • __manifest__.py

Although it is difficult to tell, in both cases there are two underscores together at the beginning and then another two underscores just before the file extension. You must name these files exactly this way to have a valid Odoo module.

These are Python files, and they can be edited with any text editor. We will begin by defining these two required files.

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.