跳至内容
菜单
此问题已终结
1 回复
3297 查看

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'

相关帖文 回复 查看 活动
3
8月 23
5237
1
12月 24
4275
0
6月 21
2326
2
5月 24
5130
3
6月 22
5396