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.


What happens to newly created fields when I update to a later version of OpenERP

Bill Ennals
on 5/14/13, 4:37 AM 881 views

I have created a number of new fields for the Personal tab in the Employees form by going to Settings-Database Structure-Fields-Create and then adding those fields using the "Manage Views" facility. I can see that doing this has created new columns in the table 'hr_employee' by viewing it with PGAdminII. I've been advised by other forum members that a better way to create such fields would be to develop a new module and inherit views but I'm not technically capable of that (at least, not yet).

My question is whether these new fields will be preserved when I update to a newer version of OpenERP or will I need to somehow combine the customised parts of my existing installation with any newer installation?



Francesco OpenCode

--Francesco OpenCode--
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 5/14/13, 5:04 AM

The best way to add/remove/edit OpenERP features is to develope a module. With this system you can change code, view and other things. So, you can use the some module on other installation or release it to the community to help OpenERP to improve itself. With a module you can control in a better way the modification to the OpenERP strucuture.

If you upgrade OpenERP you can lose the modification you did in the database.

This is the documentation for OpenERP 7 but if you want there are docs for 6.0 and 6.1, too

Ok, thanks Francesco. I have looked at the developer documentation for OpenERP 7 but it seems to assume a lot of prior knowledge. Can you recommend a resource (a tutorial perhaps) that walks a person through the process of creating a simple module?

Bill Ennals
on 5/14/13, 7:28 AM

A bet way to develope a module is to follow the documentation and read the code of "idea" module. A simple module, in addons, used as example for benniger user.

Francesco OpenCode
on 5/14/13, 8:35 AM

Right, I will have a look at that. In the meantime, someone may find it of interest that after backing up and updating to the latest nightly build, all of the custom fields that I had created in the Employee form were still there. I can only assume that whatever information was stored when I created the new custom fields was not overwritten when I did the update.

Bill Ennals
on 5/20/13, 4:44 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: 5/14/13, 4:37 AM
Seen: 881 times
Last updated: 3/16/15, 8:10 AM