```python class ResUsers(models.Model): _inherit = 'res.users' my_test = fields.Boolean() @api.model def a_function(self, emails): self.search([('my_test', '=', true)]) ``` this code is generating a diagnostic 'my_test' is not a valid field in the search domain