I'm trying to add a field in an existing module view , but it doesn't recognize my field , can someone help me , here is everything you would need
here is the error : " Field "Role" does not exist in model "hr.employee"
here is the view code :
benevole_field
hr.employee
and here is the model : "from odoo import models, fields, api
class reseau_de_proche_benevole(models.Model):
_inherit = 'hr.employee'
_name = "reseau_de_proche_benevole"
Role = fields.Selection([
('benevole', 'benevole'),
('employee', 'employee'),
]) "
See how to inherit and add new field: https://www.youtube.com/watch?v=3iY3ea-wvjw&list=PLqRRLx0cl0homY1elJbSoWfeQbRKJ-oPO&index=8