trying to add a custom field from Odoo frontend (Settings -> Technical -> Models) but when trying to save Model it is showing error. after given the required things i pressed SAVE & CLOSE button. please check the screenshots below and help what is the problem and how it can be resolved. the Domain is to exclude current logged-in user from selection in Many2one list which seems not working as without this domain filter the field is showing all data successfully, how to write this domain here? the Domain is:
[lambda self: [('id', '!=', self.env.user.id)]]
regards