Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Completing the addon module manifest


The manifest is an important piece for Odoo modules. It contains important information about it and declares the data files that should be loaded.

Getting ready

We should have a module to work with, already containing an __openerp__.py manifest file. You may want to follow the previous recipe to provide such a module to work with.

How to do it…

We will add a manifest file and an icon to our addon module:

  1. To create a manifest file with the most relevant keys, edit the module __openerp__.py file to look like this:

    # -*- coding: utf-8 -*-
    {
        'name': "Title",
        'summary': "Short subtitle phrase",
        'description': """Long description""",
        'author': "Your name",
        'license': "AGPL-3",
        'website': "http://www.example.com",
        'category': 'Uncategorized',
        'version': '9.0.1.0.0',
        'depends': ['base'],
        'data': ['views.xml'],
        'demo': ['demo.xml'],
    }
  2. To add an icon for the module, choose a PNG image to use and copy it to static/description...