增加新功能模块

OpenERP的所有功能点包含在其各种各样的模块中,其中不少的核心模块在系统初始安装的时候已经自动装载并且后续可以在线升级。虽然他们大多并不是一开始就安装在你的数据库,它们可在你的电脑立即进行安装。附加模块也可以从OpenERP的官方网站http://openerp.com在线加载。当这些模块刚被加载到系统中无效的,随后这些模块可以通过单独的步骤进行安装。

你应当在线检查是否有任何需要安装的更新作为开始初始安装的开始步骤。然后可以安装CRM系统来完善现有的数据库。

更新模块列表

Click Administration ‣ Modules ‣ Update Modules List to start the updating tool. The Module Update window opens notifying the user that OpenERP will look at the server side for adding new modules and updating existing ones.

点击 更新(Update) 开始更新服务端。结束之后,你会看到 模块更新结果(Module update result) 报告,指出加入了多少新的模块以及更新了多少现有的模块。点击 打开模块(Open Modules) 返回更新后的模块列表。

注解

模块

你的电脑可以使用的所有模块都可以在你的Openerp服务器的addons目录中找到。每个模块都是一个与模块同名的目录或者是一个模块名带有.zip后缀的文件。该文件是ZIP压缩格式,解压缩后具有一个完整模块的目录结构。

小技巧

Searching through the whole list

The list of modules shows only the first available modules. In the web client you can search or follow the First / Previous / Next / Last links to get to any point in the whole list, and you can change the number of entries listed by clicking the row number indicators between Previous and Next and selecting a different number from the default of 20.

If you use the GTK client you can search, as you would with the web client, or use the selection field (currently showing 80) to the top right of the window to change the number of entries returned by the search from its default limit of 80, or its default offset of 0 (starting at the first entry) in the whole list.

配置及重运行配置向导

One of the new features of OpenERP is the Configuration wizard. Once run, the Reconfigure shortcut will appear. This wizard provides an easy way to install modules, thanks to its user-friendly and easy-to-use interface. The user may invoke this wizard at his own convenience using the shortcut Reconfigure, found just below the database and user name in the web-client or in the Shortcut menu in the GTK client. The same Configuration dialog box appears that you may have encountered at the time of installing a new database. Why did we call it the Reconfigure wizard? Indeed, because it allows the user to review installed applications and install related additional features or simply to install new applications on the fly.

When you go through the various steps in the wizard, you will come across some options that are checked and greyed. These are applications already installed. In the openerp_ch02 database configuration, you may see that the Customer Relationship Management option is already checked because this Business Application has been installed in this database. Install extra applications simply by checking the corresponding options and clicking Install or click Skip to stop the configuration. You will eventually also come across the CRM Application Configuration step which you may use to add features to your CRM application. For now, select the Claims option and click Configure. This will in turn install the crm_claim module.

/doc_static/6.0/_images/reconfigure_wizard.png

Reconfigure wizard showing Customer Relationship Management application as installed

You may continue adding features this way, skip configuration steps or simply exit from this wizard. When you feel the need to load your system with additional features, you may invoke the Reconfigure wizard again at any point.

注解

You can also change the Configuration Wizard through the Administration ‣ Configuration ‣ Configuration Wizards ‣ Configuration Wizards.

安装新模块及应用

You will now install a module named google_map, which will enable you to add a feature to the partner form to open the location directly in Google Maps. This is part of the core installation, so you do not need to load anything to make this work.

Open the list of modules from Administration ‣ Modules ‣ Modules. Search for the module by entering the name google_map in the Name field on the search screen then clicking it in the list that appears to open it. The form that describes the module gives you useful information such as its version number, its status and a review of its functionality. Click Schedule for Installation and the status of the module changes to To be installed.

小技巧

From now on you can schedule and install modules from list view too. Notice the buttons on the right side and the action button to install.

/doc_static/6.0/_images/install_google_map_module.png

Installation of the Google Maps module

小技巧

技术指南

If you select a module in any of the module lists by clicking on a module line and then on Technical Guide at the top right of the window, OpenERP produces a technical report on that module. It is helpful only if the module is installed.

此报告由一个所有对象以及所有字段及其描述的列表组成。报告适用于你的系统,反应了你做的任何的修改及所有你安装了的其他模块。

Then, either use the menu Administration ‣ Modules ‣ Apply Scheduled Upgrades, or from the Actions section click Apply Scheduled Upgrades, then Start update on the Module Upgrade form that appears. Close the window when the operation has completed. Return to the Sales menu; you will see the new menu Products has become available.

小技巧

Refreshing the menu in the GTK Client

After an update in the GTK client you will have to open a new menu to refresh the content – otherwise you will not see the new menu item. To do that, use the window menu Form ‣ Reload / Undo or use the shortcut Ctrl+R.

安装模块及其依赖模块

Now install the Warehouse Management module using the same process as before. Start from Administration ‣ Modules ‣ Modules.

  1. Get the list of modules, and search for the stock module in that list.

  2. Schedule the module for installation by clicking Schedule for Installation.

  3. 同样地 科目.

  4. Click Apply Scheduled Upgrades on the action toolbar to the right.

  5. Click Start update to install both modules.

  6. After a few seconds, when the installation is complete, you may close this dialog box.

  7. 在模块表单的一个新的 特征(Features) 页面,你将能够看到该模块安装的所有特性的详细资料。

当您返回到 仓库管理(Warehouse) 菜单时, 您就将在 仓库(Warehouse) ‣ 仓库管理(Warehouse Management)菜单下边 ‣ 入库(Incoming Shipments), 仓库(Warehouse) ‣ 移库(Products Moves), 已经成为仓库管理系统中的菜单的一员啦。 您还将在 会计(Accounting) 菜单下看到所有的会计功能菜单项。

模块的安装和菜单添加二者之间并无特定联系关系。绝大部分完整的菜单选项只不过是添加到系统中的子菜单而已,除了某些核心模块以外。当然模块也可作为字段的形式添加到特定的某些需求特殊的或者仅仅是额外的演示数据中去。

注解

模块之间的依赖关系

安装之前,模块表单显示了两个选项卡。第一个选项卡给出了模块的基本信息。第二个列出模块所依赖的其他模块。因此当你安装模块时,Openerp会自动地选择所有必要的依赖项进行安装。

那也是你将如何开发一个新的概要模块:他们简单定义了一个你想要作为依赖集放在你的概要描述中的模块列表。

尽管你可以一起安装模块及其依赖模块,但却不能够使用一次操作卸载他们——你需要一个模块一个模块地来卸载。卸载模块远比安装模块要来的复杂,因为你必需要去处理系统中的数据。

注解

卸载模块

OpenERP的模块卸载功能虽然不错,但还不够完美。它并不保证能够准确回到系统安装前的状态。

所以建议您在安装新模块之前先给数据库做一个备份,这样您就可以有后悔药可以吃了,觉得新模块不合适您就可以恢复一下数据库即可。如果适合您,那就不需要删除您所以有系统数据而去重新安装整套OpenERP系统啦!

If you wanted to uninstall, you would use the menu Administration ‣ Modules ‣ Modules and then uninstall them in the inverse order of their dependencies: stock, account.

安装附加功能

为了能够全方位的了解OpenERP的各种功能,你可以安装许多其他的模块。为了便于了解整个核心系统,安装的时候可以同时安装演示数据。当你安装“openerp_cho2”数据库时会自动的包含演示数据,因为你开始创建数据库的时候勾选了“载入演示数据”的复选框。

Click Administration ‣ Modules ‣ Modules to give you an overview of all of the modules available for installation.

测试几个模块,你必须逐个安装这些模块。你也可以使用依赖特性,同时安装几个模块。