
#LFPV

from odoo import api,fields,models,_


class HrEmployee(model.Model):
    """Inherit hr_employee to add date_start and to add yours childrens
    """
    _inherit = "hr.employee"

    _columns = {
        'date_start': fields.date('Date Start'),
        'children_ids': fields.one2many(
            'hr.children', 'employee_id', 'Childrens')
    }


class HrChildren(model.Model):
    """Class to add object of childrens to employee
    """
    _name = "hr.children"

    _order = 'name'

    _columns = {
        'name': fields.char('Name', size=64, required=True),
        'date_of_birth': fields.date('Date of birth'),
        'schooling': fields.selection(
            [('elementary', 'Elementary'),
             ('high_school', 'High School'),
             ('preparatory', 'Preparatory'),
             ('university', 'University')], 'Schooling'),
        'employee_id': fields.many2one('hr.employee', 'Employee')
    }

93bba81a62cf21db41b344a58d471b167982fa39
<mask token>


class HrChildren(model.Model):
    <mask token>
    _name = 'hr.children'
    _order = 'name'
    _columns = {'name': fields.char('Name', size=64, required=True),
        'date_of_birth': fields.date('Date of birth'), 'schooling': fields.
        selection([('elementary', 'Elementary'), ('high_school',
        'High School'), ('preparatory', 'Preparatory'), ('university',
        'University')], 'Schooling'), 'employee_id': fields.many2one(
        'hr.employee', 'Employee')}

<mask token>


class HrEmployee(model.Model):
    <mask token>
    _inherit = 'hr.employee'
    _columns = {'date_start': fields.date('Date Start'), 'children_ids':
        fields.one2many('hr.children', 'employee_id', 'Childrens')}


class HrChildren(model.Model):
    """Class to add object of childrens to employee
    """
    _name = 'hr.children'
    _order = 'name'
    _columns = {'name': fields.char('Name', size=64, required=True),
        'date_of_birth': fields.date('Date of birth'), 'schooling': fields.
        selection([('elementary', 'Elementary'), ('high_school',
        'High School'), ('preparatory', 'Preparatory'), ('university',
        'University')], 'Schooling'), 'employee_id': fields.many2one(
        'hr.employee', 'Employee')}

<mask token>


class HrEmployee(model.Model):
    """Inherit hr_employee to add date_start and to add yours childrens
    """
    _inherit = 'hr.employee'
    _columns = {'date_start': fields.date('Date Start'), 'children_ids':
        fields.one2many('hr.children', 'employee_id', 'Childrens')}


class HrChildren(model.Model):
    """Class to add object of childrens to employee
    """
    _name = 'hr.children'
    _order = 'name'
    _columns = {'name': fields.char('Name', size=64, required=True),
        'date_of_birth': fields.date('Date of birth'), 'schooling': fields.
        selection([('elementary', 'Elementary'), ('high_school',
        'High School'), ('preparatory', 'Preparatory'), ('university',
        'University')], 'Schooling'), 'employee_id': fields.many2one(
        'hr.employee', 'Employee')}

from odoo import api, fields, models, _


class HrEmployee(model.Model):
    """Inherit hr_employee to add date_start and to add yours childrens
    """
    _inherit = 'hr.employee'
    _columns = {'date_start': fields.date('Date Start'), 'children_ids':
        fields.one2many('hr.children', 'employee_id', 'Childrens')}


class HrChildren(model.Model):
    """Class to add object of childrens to employee
    """
    _name = 'hr.children'
    _order = 'name'
    _columns = {'name': fields.char('Name', size=64, required=True),
        'date_of_birth': fields.date('Date of birth'), 'schooling': fields.
        selection([('elementary', 'Elementary'), ('high_school',
        'High School'), ('preparatory', 'Preparatory'), ('university',
        'University')], 'Schooling'), 'employee_id': fields.many2one(
        'hr.employee', 'Employee')}


#LFPV

from odoo import api,fields,models,_


class HrEmployee(model.Model):
    """Inherit hr_employee to add date_start and to add yours childrens
    """
    _inherit = "hr.employee"

    _columns = {
        'date_start': fields.date('Date Start'),
        'children_ids': fields.one2many(
            'hr.children', 'employee_id', 'Childrens')
    }


class HrChildren(model.Model):
    """Class to add object of childrens to employee
    """
    _name = "hr.children"

    _order = 'name'

    _columns = {
        'name': fields.char('Name', size=64, required=True),
        'date_of_birth': fields.date('Date of birth'),
        'schooling': fields.selection(
            [('elementary', 'Elementary'),
             ('high_school', 'High School'),
             ('preparatory', 'Preparatory'),
             ('university', 'University')], 'Schooling'),
        'employee_id': fields.many2one('hr.employee', 'Employee')
    }
