模块集成

The are many different modules available for OpenERP and suited for different business models. Nearly all of these are optional (except ModulesAdminBase), making it easy to customize OpenERP 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 OpenERP platform.

Some modules depend on other modules. See the file addons/module/__terp__.py for more information on the dependencies.

Here is an example of __terp__.py:

  1. {
  2. "name" : "Open TERP Accounting",
  3. "version" : "1.0",
  4. "author" : "Bob Gates - Not So Tiny",
  5. "website" : "http://www.openerp.com/",
  6. "category" : "Generic Modules/Others",
  7. "depends" : ["base"],
  8. "description" : """A
  9. Multiline
  10. Description
  11. """,
  12. "init_xml" : ["account_workflow.xml", "account_data.xml", "account_demo.xml"],
  13. "demo_xml" : ["account_demo.xml"],
  14. "update_xml" : ["account_view.xml", "account_report.xml", "account_wizard.xml"],
  15. "active": False,
  16. "installable": True
  17. }

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.