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.


Adding new Fields to hr_employee table for V 7.0

on 2/22/13, 6:18 AM 3,011 views

I want to add few fields to hr_employee and new tables in the database related to employee.

Employee create form is not reflected with the new fields even though added in the database.


Andreas Brueckl

--Andreas Brueckl--
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 2/27/13, 4:18 AM

If you want to add a field to hr.employee, then you have 2 choices:

  1. Add a field in menu "Settings -> Technical -> Database Structure -> Models". Therefore your user must have the access right Technical Features. Afterwards you have to add the new field in the desired views. The easiest way to do this is to activate the Developer mode (see here), go to the view you want to change and e.g. choose Edit TreeView in the drop-down box.
  2. Create a new Module (see OpenERP Developer documentation)

You should never insert a new field directly in the database!

Update: I found the following question related to this one here

This answer might also provide a useful guide.

Daniel Reis
on 2/27/13, 5:21 AM

Vasiliy Birukov

--Vasiliy Birukov--
| 6 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 2/27/13, 1:02 AM

Need also add field to XML view definition.

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: 2/22/13, 6:18 AM
Seen: 3011 times
Last updated: 3/16/15, 8:10 AM