Hi All,
I have one Many2one field and i want to show not specific users of specific applied group's how to do this. If anyone know this please let me know.
See My Code
.py File
class CrmLead(models.Model):
_inherit = 'crm.lead'
developer_id = fields.Many2one('res.users', 'Developer', default=lambda self:self.env.user)])
@api.multi
@api.onchange('developer_id')
def onchange_developer_id(self):
user = self.env.ref('group_user_hide').user.ids
return {'domain': {'developer_id': [('id', 'in', user.ids)]}}