Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/23/15, 5:29 AM|
|Seen: 4170 times|
|Last updated: 11/17/15, 7:22 AM|