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

Can't remove field from model

By
jianxin
on 10/22/15, 10:01 AM 400 views

I am using odoo8, and I just created one field for model which is inherited from res.partner in py file. After i upraded the module, the field was generated in model res.partner. This is as expected. 

After a while I found the field which i just created is not needed actually, so I remove the code for the field in py file, and restarted server/upgraded the module. After that the field was still in model res.partner. Even after I deleted the field in pgsql database, the field was still there in the model.

Is this normal? How to remove a field in such case?

0
Juan Muñoz
On 10/22/15, 11:49 AM

You remove the field from xml file? Any line should have <field name="your_field_name_in_py_file" />

Actually, I did NOT add the field in the view xml file from the beginning.

jianxin
on 10/22/15, 8:26 PM

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)

Stats

Asked: 10/22/15, 10:01 AM
Seen: 400 times
Last updated: 10/22/15, 11:49 AM