- Odoo 11 Development Cookbook(Second Edition)
- Holger Brunn Alexandre Fayolle
- 82字
- 2021-06-25 22:48:40
How to do it...
We will add a manifest file and an icon to our addon module:
- To create a manifest file with the most relevant keys, edit the module __manifest__.py file to look like this:
{ 'name': "Title", 'summary': "Short subtitle phrase", 'description': """Long description""", 'author': "Your name", 'license': "AGPL-3", 'website': "http://www.example.com", 'category': 'Uncategorized', 'version': '11.0.1.0.0', 'depends': ['base'], 'data': ['views.xml'], 'demo': ['demo.xml'], }
- To add an icon for the module, choose a PNG image to use and copy it to
static/description/icon.png.