There is a way to ignore LS errors for line #357
-
Hi everyone, I have the error: I tried using type ignore but LS keeps giving me the same error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
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. If it still doesn't work, I would be happy if I could see how did you add the field to res.users and how did you write the search domain, because it should work and maybe this is something we have to fix. Concerning the my_code(); #noqa OLS30320 Next version will provide a setting to disable or change severity of codes globally too. |
Beta Was this translation helpful? Give feedback.
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:
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…