跳至內容
選單
此問題已被標幟
1 回覆
3327 瀏覽次數

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
5264
1
12月 24
4291
0
6月 21
2343
2
5月 24
5159
3
6月 22
5428