تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3298 أدوات العرض

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
أغسطس 23
5237
1
ديسمبر 24
4275
0
يونيو 21
2326
2
مايو 24
5130
3
يونيو 22
5396