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.
I have been noticing inconsistant behavior when trying to update my custom modules. I have been restarting the OpenERP server each time (/etc/init.d/openerp restart) and selecting upgrade from Settings: Installed Modules: Module Name, but some of my changes aren't going through. I have even tried installing the module on a differnt database, but it still had the original configuration. These are mostly changes to the .py file, sometimes to the .xml. Any idea what is going on here? Am I missing something? I definitely have made and seen changes like this before, I don't know what is going on here. Thanks!
Python changes are seen by the server once rebooted, not before (this is just how Python works). The parts that define objects (models) will not be 'applied' unless you update the module, but other changes don't require you to update the module. BUT - the best practice is to update the module every time you make Python changes.
XML changes are seen as soon as they are saved (no restart required), but never loaded until you update the module. The best practice is to update the module every time there is a change to an XML file.
In Summary: the best practice: Restart the server and update the module every time you change either type of file.
Also - check that you haven't started the server twice, as the restart could be restarting the duplicate, not the one you are using to update the module.
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: 6/25/14, 8:04 PM|
|Seen: 2993 times|
|Last updated: 3/16/15, 8:10 AM|