Skip to content

search domain not seeing new fieldsΒ #358

@fda-odoo

Description

@fda-odoo
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

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions