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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up