Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3348 Переглядів

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:


Аватар
Відмінити
Найкраща відповідь

Hello Mr.Smith ,

I think your import should look like this,

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

Please check and confirm.

Аватар
Відмінити
Автор

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.

Автор

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

Related Posts Відповіді Переглядів Дія
3
серп. 23
5276
1
груд. 24
4307
0
черв. 21
2357
2
трав. 24
5170
3
черв. 22
5442