The __manifest__.py file

The __manifest__.py file is essentially a manifest for your Odoo module. It describes the necessary attributes of your module to the Odoo framework. Sometimes, this file is also called the module descriptor file.

To create the __manifest__.py file in Ubuntu, make sure you are in the module directory and use the following command:

sudo nano __manifest__.py

The structure in the file is what is called a dictionary in Python:

{ 
    'name': 'Screen Printing', 
    'version': '1.0', 
    'description': """ 
    This module adds functionality for  
         screen printing companies 
    """, 
    'author': 'Greg Moss', 
    'depends': ['base','sale'], 
    'data': ['silkworm_view.xml'], 
    'demo': [], 
    'installable': True, 
    'auto_install': False, 
} 

This is how the __manifest_.py ...

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.