Skip to content
Discussion options

You must be logged in to vote

Hello @Cerebellum-ITM ,

You can add a field to res.users from another module and make it work in your search domains. I don't know how did you do it, but it 'should' work (I put the should between '', because OdooLS is still in development, and maybe we broke something recently we aren't aware of).

By doing something like this in a module A:

class MyResUser():
    _name = "res.users"
    _inherit = "res.users"

    recovery_token = fields.Char()

It should make the field available in your search domain.
Be careful however that if your search domains is in a module B, module B should have module A in its dependencies. That's mandatory for the search to see the field recovery__token on res.u…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@Cerebellum-ITM
Comment options

@fda-odoo
Comment options

@Cerebellum-ITM
Comment options

@fda-odoo
Comment options

@Cerebellum-ITM
Comment options

Answer selected by Cerebellum-ITM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants