Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3318 Lượt xem

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:


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Mr.Smith ,

I think your import should look like this,

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

Please check and confirm.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 23
5254
1
thg 12 24
4284
0
thg 6 21
2336
2
thg 5 24
5145
3
thg 6 22
5422