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.
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.
If you want to add a field to hr.employee, then you have 2 choices:
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.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.
Hi,
You can watch following video to know how to add a custom field in Odoo:
Hi,
Once you add a field, you have to add it corresponding model and if you need to display it in the user interface, it has to be added to the corresponding view also.
* inherit and add field to the model, which will add a field in the db table
* inherit the view and place the field
See: How To Inherit And Add Field In Odoo
Thanks
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
2
mar 15
|
6452 | |||
|
add a field in employee module
Resuelto
|
4
oct 20
|
8918 | ||
|
how to create employee as an user
Resuelto
|
4
dic 25
|
35874 | ||
|
2
dic 25
|
5043 | |||
|
trying to match fields for products
Resuelto
|
2
mar 26
|
1606 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.