hr_employee_birthdate_from_home_address/models/hr_employee.py
# -*- coding: utf-8 -*-
# Copyright 2018 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
birthday = fields.Date(
string="Birthdate",
related="address_home_id.birthdate_date",
store=True,
)