Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

How to update module list from command line?

By
Temur
on 4/23/15, 5:29 AM 3,762 views

in the Odoo user interface we can update module list from settings, at "Settings/Modules/Update Module List"...

How to do the same operation with command line (using odoo.py) ?

I found related question [1] , but with no answer... [1] https://www.odoo.com/forum/help-1/question/update-from-command-line-exactly-as-fast-as-via-update-module-list-in-ui-75449

Temur
on 4/23/15, 5:45 AM

and another one with an accepted answer: https://www.odoo.com/forum/help-1/question/is-update-module-list-from-command-line-possible-54578 but

 ./odoo.py -u base
takes too long, however when we update list from ui, it's fairly faster then update of base module with -u base or -i base... so it's not the same operation or equivalent...
Temur
on 4/23/15, 5:57 AM

any suggestions?

Temur
on 4/23/15, 6:01 AM
5
Jaakko Komulainen
On 4/23/15, 8:19 AM

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 :)

nice workaround :) thanks!

Temur
on 4/23/15, 8:33 AM

thank you very much! works nicely on v9

Mateo Tibaquira
on 10/15/15, 9:21 AM
0

Solanki Shamji

--Solanki Shamji--
1293
| 5 2 6
Baroda, India
--Solanki Shamji--

Hello!

Solanki Shamji
On 4/23/15, 8:58 AM

Hello,

You can update module using below command.

./odoo.py -u modulename -d databasename

Thanks.

Shamji.


I guess that's valid AFTER you have stopped the server AND reside inside of /opt/odoo/odoo-server, right?

gunnar
on 12/16/15, 10:10 PM

Depend on service restart. If you use --xmlrpc-port=9999 or any port than no need to stop server which are running on 8069.

Solanki Shamji
on 12/17/15, 12:13 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 4/23/15, 5:29 AM
Seen: 3762 times
Last updated: 11/17/15, 7:22 AM