~openerp-community/openobject-doc/6.1

« back to all changes in this revision

Viewing changes to source/developer/1_2_module_development/2_module_integration.rst

  • Committer: TruongSinh Tran
  • Date: 2009-07-19 19:02:35 UTC
  • Revision ID: truongsinh@vipescoserver-20090719190235-fu3bxcrbpvwuk5h7
[FIX] build_i18n.py .. raw:: html

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Module Integrations
 
2
===================
 
3
 
 
4
The are many different modules available for Open ERP and suited for different business models. Nearly all of these are optional (except ModulesAdminBase), making it easy to customize Open ERP to serve specific business needs. All the modules are in a directory named addons/ on the server. You simply need to copy or delete a module directory in order to either install or delete the module on the Open ERP platform.
 
5
 
 
6
Some modules depend on other modules. See the file addons/module/__terp__.py for more information on the dependencies.
 
7
 
 
8
Here is an example of __terp__.py:
 
9
 
 
10
.. code-block:: python
 
11
 
 
12
        {
 
13
            "name" : "Open TERP Accounting",
 
14
            "version" : "1.0",
 
15
            "author" : "Bob Gates - Not So Tiny",
 
16
            "website" : "http://www.openerp.com/",
 
17
            "category" : "Generic Modules/Others",
 
18
            "depends" : ["base"],
 
19
            "description" : """A
 
20
            Multiline
 
21
            Description
 
22
            """,
 
23
            "init_xml" : ["account_workflow.xml", "account_data.xml", "account_demo.xml"],
 
24
            "demo_xml" : ["account_demo.xml"],
 
25
            "update_xml" : ["account_view.xml", "account_report.xml", "account_wizard.xml"],
 
26
            "active": False,
 
27
            "installable": True
 
28
        }
 
29
 
 
30
When initializing a module, the files in the init_xml list are evaluated in turn and then the files in the update_xml list are evaluated. When updating a module, only the files from the **update_xml** list are evaluated.