I'm trying to add 2 fields to the Skill section in Employees, but when I try to add it, i get the following error:
Ocurrió un error al procesar o validar la vista: El elemento '' no se puede localizar en la vista madre
View error context:
{'file': '/mnt/extra-addons/fabtec/gf_empleados_adds_v01/views/skills_form_view.xml', 'line': 3,
'name': 'employee_skill_feature',
'view': ir.ui.view(1777,),
'view.model': 'hr.employee.skill',
'view.parent': ir.ui.view(985,),
'xmlid': 'employee_skill_feature'}
I've tried changing the module to inherit hr.employee, and the inherited view to
hr_skills.hr_employee_view_form , but I get the same error.
Module
from odoo import api, fields, models
class EmployeeSkill(models.Model):
_inherit = "hr.employee.skill"
# Adds date of completion of skill
date = fields.Date(
string="Fecha",
help="Fecha en la que se consiguió la habilidad"
)
# Adds instructor of the specific skill
instructor = fields.Many2one(
string = "Instructor",
help="Instructor que confirma el estatus de la habilidad",
comodel_name = "hr.employee"
)
XML
employee_skill_feature
hr.employee.skill
Manifest
{
'name': 'gf_empleados_adds_v01',
'category': 'Human Resources',
'version': '1.0',
'description': """Módulo que agrega características a las habilidades de los empleados """,
'author': 'Alex',
'depends': ['hr','hr_skills'],
'data': [ 'views/skills_form_view.xml'],
'installable':True,
'license': 'LGPL-3'
}