Odoo Help


How to delete fields immediately when updating the module?

willie ho
on 3/19/15, 9:14 PM 1,034 views

I created a table with 2 fields.

After that, I edited 1 field's name and when I update the module, the system created a new field and the old field is not deleted.

How can I delete that field?


Dhinesh - Technical Consultant, Sodexis Inc

--Dhinesh - Technical Consultant, Sodexis Inc--
| 5 4 9
Pondicherry, India
--Dhinesh - Technical Consultant, Sodexis Inc--

Passionate coder in Python/OpenERP. Knows Django/Flask MVC frameworks. Did code in Java, PHP.

Contact me at: dvdhinesh.mail@gmail.com

Dhinesh - Technical Consultant, Sodexis Inc
On 3/20/15, 1:39 AM


If you upgrade the module, the old field will remain as it is and the new field will get created. If you want to remove the old field, uninstall the module and install it again.

It didn't work for me. I still see my field that I want to delete in my field list of my model. I manually deleted this field from DB and I still can see it through the Odoo UI.

I tried to delete it from the UI, but I'm getting the following error:

"This column contains module data and cannot be removed!". But DB doesn't show any data in that column, it's empty.

on 12/19/16, 4:10 PM



| 5 3 8
Pondicherry, India
On 3/20/15, 1:03 AM

There are some ways to resolve this issue:

1.Make sure that the previous view deleted in the the view table or not.If not delete the previous view and update the module.

2. Un-install that module and re-install again

3. You can change the label for the field in view level , if you want .For example :

   <label for "field_name"  position="replace">

  <label string="New String" for="field_name" />


All the best

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 3/19/15, 9:14 PM
Seen: 1034 times
Last updated: 3/20/15, 1:39 AM