2016-04-28

How To Create a New Module on the Odoo

If we are trying to build a new module of the Odoo, we should type the command like:


python odoo.py scaffold Academy openerp/my-modules

This command generates the Odoo module scaffold named Academy to the directory openerp/my-modules. But when we try to install this new Academy module under the Setting page, we cannot find an Academy module for us to install.

In order to find this new module, we need to use the "Update Module List" option.

If we can't find the option "Update Module List" either, we need to enable the "Technical Features" checkbox in our current user's settings.

Need to do some steps:

First, select side menu Users-Users  and click the Administration user. Then we can see the form view of the User/Administrator. Click the "Technical Features" checkbox and save the settings.


Then, select side menu of Modules-"Update Module List", and click the Update button.


Finally,  select side menu Modules-Local Modules,remove all filters and sort the module list. We will see the Academy module in the first position.


Going to http://localhost:8069/academy/academy/  will see the new module.

If we've added some  templates or have modified codes of the module Academy , we will need to upgrade the module again.

We should restart Odoo and update the module's data (to install the template) by going to Settings-Modules-Local Modules-Academy and clicking the Upgrade button.
Going to http://localhost:8069/academy/academy/  should show new updated results.

Reference:

Building a Website — odoo 8.0 documentation


沒有留言:

張貼留言