
from openerp import models, fields


class HrEmployee(models.Model):

    _name = 'hr.employee'
    _inherit = 'hr.employee'

    emergency_contact_ids = fields.Many2many(
        string='Emergency Contacts',
        comodel_name='res.partner',
        relation='rel_employee_emergency_contact',
        column1='employee_id',
        column2='partner_id',
        domain=[
            ('is_company', '=', False),
            ('parent_id', '=', False),
            ]
        )


from openerp import models, fields


class HrEmployee(models.Model):

    _inherit = 'hr.employee'

    emergency_contact_ids = fields.Many2many(
        string='Emergency Contacts',
        comodel_name='res.partner',
        relation='rel_employee_emergency_contact',
        column1='employee_id',
        column2='partner_id',
        domain=[
            ('is_company', '=', False),
            ('parent_id', '=', False),
            ]
        )

Remove _name attribute on hr.employee
Remove _name attribute on hr.employee

  
  from openerp import models, fields
  
  
  class HrEmployee(models.Model):
  
-     _name = 'hr.employee'
      _inherit = 'hr.employee'
  
      emergency_contact_ids = fields.Many2many(
          string='Emergency Contacts',
          comodel_name='res.partner',
          relation='rel_employee_emergency_contact',
          column1='employee_id',
          column2='partner_id',
          domain=[
              ('is_company', '=', False),
              ('parent_id', '=', False),
              ]
          )
  
Remove _name attribute on hr.employee
## Code Before:

from openerp import models, fields


class HrEmployee(models.Model):

    _name = 'hr.employee'
    _inherit = 'hr.employee'

    emergency_contact_ids = fields.Many2many(
        string='Emergency Contacts',
        comodel_name='res.partner',
        relation='rel_employee_emergency_contact',
        column1='employee_id',
        column2='partner_id',
        domain=[
            ('is_company', '=', False),
            ('parent_id', '=', False),
            ]
        )

## Instruction:
Remove _name attribute on hr.employee
## Code After:

from openerp import models, fields


class HrEmployee(models.Model):

    _inherit = 'hr.employee'

    emergency_contact_ids = fields.Many2many(
        string='Emergency Contacts',
        comodel_name='res.partner',
        relation='rel_employee_emergency_contact',
        column1='employee_id',
        column2='partner_id',
        domain=[
            ('is_company', '=', False),
            ('parent_id', '=', False),
            ]
        )
