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) ?
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 :)
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
|Asked: 4/23/15, 5:29 AM|
|Seen: 3762 times|
|Last updated: 11/17/15, 7:22 AM|