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 am developping a new module in Odoo for one of my customer. I am using Windows and intend to port eventually that module on a Windows server.
In the development process, I have to frequently rewritre or add python code to my module.Whenever I do so, in order to upgrade my module, I have to: uninstall my module, delete it, erase it from the addons directory, stop and start the Odoo service, copy back my module in the addons directory, have Odoo upgrade its modules list, reinstall it. Every time I do so, I loose my Odoo objects (and the corresponding tables in the database) and the data. If I do not follow that path, I get unrecoverable errors whenever I try to "upgrade" the module through the Odoo button and have to do those steps anyways to recover my Odoo installation.
Not only is that time consuming, but it is also unthinkable in an eventual real installation. There must surely be another way.
Could someone help me?
Have you been doing your development work in Eclipse (with the PyDev pluggin)?
Here is a complete guide to Odoo development under Windows: https://www.odoo.com/forum/help-1/question/how-to-debug-odoo-in-eclipse-under-winows-36105
I am not an expert on the upgrade process so all I can do is speculate that Update is primarily an additive process. You should be able to modify the contents of a function, XML file etc, but can't go as far as to remove table fields, classes, or functions as part of an update.
How do you stop and start your odoo service? I believe you don't need to reinstall everything, just restart odoo and upgrade your module. I use Notepad++ and copy(replace) my files to addon folder in server then I restart the server using C:\Program Files (x86)\Odoo 8.0-20140918-103809\service\start.bat and upgrade my module using upgrade button (not delete and install again) and it works just fine.
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: 10/15/14, 1:51 PM|
|Seen: 2794 times|
|Last updated: 3/16/15, 8:10 AM|