Skip to Content
Menu
This question has been flagged
2 Replies
2669 Views

hello every body

On Odoo 13, in employé table, how to add another field such as "hire date", team, "date of birth", "gender", .… 

thanks a lot

Avatar
Discard
Best Answer

Hi,

 Gender and date of birth fields already exists in private information tab.

To add custom fields:

from odoo import api, fields, models

class HREmployee(models.Model):
_inherit = ['hr.employee']

hireday = fields.Date('Date of Birth', groups="hr.group_hr_user")


Then you will inherit the form view and add it to the view.

See the below link for How to Add Custom Fields to Existing Views

https://www.cybrosys.com/blog/adding-custom-fields-to-existing-views-in-odoo-v12

Avatar
Discard
Best Answer

Hi,

Either you can add the new fields from the User Interface or by coding. If you are not good in coding, you can do it from UI like this: Add custom field in odoo without code

And If you like to achieve the same using coding, see this: How To Inherit And Add Field to Existing Views In Odoo

Thanks

Avatar
Discard