Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3345 Visualizzazioni

i need to inherit addons/auth_signup/controllers/main.py, in my controller file added below line to import it but Pycharm showing error when mouse over on word: "auth_signup"  how i can resolve this, please help.

Cannot find reference 'auth_signup' in '__init__.py'

the line in my controller file:

from odoo.addons.auth_signup.controllers.main.auth_signup import AuthSignupHome

screenshot:


Avatar
Abbandona
Risposta migliore

Hello Mr.Smith ,

I think your import should look like this,

from odoo.addons.auth_signup.controllers.main import AuthSignupHome

Please check and confirm.

Avatar
Abbandona
Autore

thanks @Karthikeyan, still same error... it was same as you have posted, i added "auth_signup" after "main" intentionally to check whether error removed or not but not.

Autore

error is: Cannot find reference 'auth_signup' in '__init__.py'

Post correlati Risposte Visualizzazioni Attività
3
ago 23
5276
1
dic 24
4303
0
giu 21
2356
2
mag 24
5170
3
giu 22
5440