From 0aab81cd3ac6881b2b64ccedb901b55badd421d4 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 19 Jan 2015 15:51:16 +0100 Subject: [IMP] doc: move manifest description from backend tutorial to manifest doc --- doc/reference/module.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc/reference/module.rst') diff --git a/doc/reference/module.rst b/doc/reference/module.rst index 14e7847f1da..5dd93ca2cf6 100644 --- a/doc/reference/module.rst +++ b/doc/reference/module.rst @@ -15,6 +15,27 @@ and to specify a number of module metadata. It is a file called ``__openerp__.py`` and contains a single Python dictionary, each dictionary key specifying a module metadatum. +:: + + { + 'name': "A Module", + 'version': '1.0', + 'depends': ['base'], + 'author': "Author Name", + 'category': 'Category', + 'description': """ + Description text + """, + # data files always loaded at installation + 'data': [ + 'mymodule_view.xml', + ], + # data files containing optionally loaded demonstration data + 'demo': [ + 'demo_data.xml', + ], + } + Available manifest fields are: ``name`` (``str``, required) -- cgit v1.2.3