Odoo Help

Welcome!

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.

0

How to delete fields immediately when updating the module?

By
willie ho
on 3/19/15, 9:14 PM 512 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?

3

Dhinesh - Technical Consultant, Sodexis Inc

--Dhinesh - Technical Consultant, Sodexis Inc--
3577
| 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

Hi,

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.

2

Vasanth

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
Vasanth
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" />

  </label>


All the best

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)

Stats

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