Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3311 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
how to call http controller from js ? แก้ไขแล้ว
3
ส.ค. 23
5246
Get host address or domain แก้ไขแล้ว
1
ธ.ค. 24
4283
0
มิ.ย. 21
2336
2
พ.ค. 24
5141
3
มิ.ย. 22
5415