1
votes

How Can i update module list From terminal in

openerp and odoo(v8) ?

Is there any way to achieve this from terminal?

I want to update module list Without Using Webclient

4

4 Answers

1
votes

You can update all module list from the terminal using:

./openerp-server -u all -d dbname --addons-path=addons/
1
votes

You can create xml-file that calls ir.module.module objects update_list function. Like this:

<openerp>
    <data>
        <function model="ir.module.module" name="update_list"/>
    </data>
</openerp>

Now if you add this xml-file to module data (like you would add any other view definition or other xml-files) that update_list function gets called every time you update this module.

For example you added this to a new module named "your_custom_module_updater", so now you can start odoo with:

./odoo.py -u your_custom_module_updater 

and that module list should update every time from now on.

*note: you still need to manually update the list for your_custom_module_updater to install it :)

Update: By manipulating with ir_module_module table you can add, install, uninstall or upgrade the module

-->Module list will be updated automatically when you upgrade your module.

0
votes

You can use like Command line interface

python openerp.py or odoo.py --db-filter=db_name -d db_name -u module list
-1
votes

In odoo V9 Activate developer mode. Click on your username in upper right corner > About > Activate Developer mode Update modules/apps list Main menu > Apps > Update apps list