Odoo Help


Adding new Fields to hr_employee table for V 7.0

on 2/22/13, 6:18 AM 4,290 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--
| 7 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.

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

1 follower(s)


Asked: 2/22/13, 6:18 AM
Seen: 4290 times
Last updated: 3/16/15, 8:10 AM