Default_get method not setting the values to the field in odoo 14. I'm using the 'active_id' context, I can print it but I can't affect it to the field.
This is my code:
@api.model
def default_get(self, fields):
res = super(HrRefusWizard, self).default_get(fields)
res['employee_id'] = self._context.get('active_id')
return res
refus = fields.Text(string='Comentaire de refus', required=False)
employee_id = fields.Many2one('hr.employee', string='Employee', required=True)
Help me please