Odoo Help


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.


do I have to reinstall and updated custom Module?

on 11/23/14, 9:11 PM 1,413 views

I have a custom Module that adds fields to the employees entry. It was adding 3 fiedls at first and I recently updated it so it add now 4 fields.

Question: do I have to reinstall the module or would a simple stop/start of the odoo server (in between placing the updated code in the right addons folder) do the job already? There is a button Upgrade when you open the From View of a Module. Maybe that's just what you have to click?


Billiard R Made
on 11/24/14, 12:46 AM


| 7 7 8
Turnhout, Belgium

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

On 11/24/14, 1:58 AM

There are two options for you. The first is to upgrade the module by command, the second is by interface.
The thing is that whenever you change XML/Python files you will need to update your module as Odoo does not automaticly update the code at this point. (this is an idea that will probably come in Odoo 9 though)

Option 1 - by interface:
1. Go to settings and update your module list by clicking on 'Update module list'.

2. Search the module you've updated in your list, open it and click on update.
3. You should now see your customizations. However this does seem to fail once in a while for me, this is why I like option two.

Option 2 - by command:
1. Open up a terminal and type in the command ./openerp-server -u yourModuleName.
For example if you want to update the module sale it would look like this:

2. Open your browser, surf to your Odoo instance and open the module you've upgraded.
You ''ll see it is upgraded. 



| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 11/24/14, 3:40 AM

Here is a recipe i use while coding new modules:

python / xml_
1. modify views (xml file) - upgrade module is needed fro view to load in database
2. modify .py file : only methods are modified -  restart server / service is needed (recompile .py file)
3. modify .py file : add/change _columns dictionary ( v7 api!) - restart service (for new dict to load) and upgrade module (for loaded dict to apply/cretae new columns in db)

Modifying css is visible on page reload so no restart or upgrade needed,
Modify js - upgrade module needed for new js to load properly


Hope it helps

On 11/24/14, 2:20 AM

if you change  the view or modify the Table or database you should restart the server and click update and upgrade ...

but for dynamic changes like button method call... on change event a single refresh is enough...

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)


Asked: 11/23/14, 9:11 PM
Seen: 1413 times
Last updated: 3/16/15, 8:10 AM