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.


How to save the column of the database when deleting the module?

willie ho
on 9/16/14, 4:20 AM 915 views

I am creating a module to add a field to a table.

When I add the module, the column will be created automatically. Also when I delete the module, the column will disappear.

What can I do to keep the column existing?



| 5 3 6
Jakarta, Indonesia
On 9/16/14, 5:10 AM

Willie, AFAIK OpenERP by default will ke columns intact if a module is uninstalled.  Could you share which version of OpenERP you are using and what module are you uninstalling?

Hi John, I am creating a custom module and I am using OpenERP Version 7

willie ho
on 9/16/14, 5:15 AM

Well, as I've mentioned by default OpenERP (7 for sure) does not delete columns or tables when the module got uninstalled. Can you elaborate on how you actually "delete" the mdoule?

on 9/16/14, 5:41 AM

I just uninstall the module and the column disappear itself, I test it for several times and it give the same result

willie ho
on 9/16/14, 5:57 AM

Willie, I've just tried a couple of scenarios, most of them, the columns are intact. Just to clarify we are talking about PostgreSQL's column, right? The column that has gone missing, does it happen to be a many2one field to a new table that is also removed when you uninstall the module? OpenERP does remove tables if it is defined in the module you are uninstalling.

on 9/16/14, 6:20 AM

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

1 follower(s)


Asked: 9/16/14, 4:20 AM
Seen: 915 times
Last updated: 3/16/15, 8:10 AM