Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3319 Näkymät

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:


Avatar
Hylkää
Paras vastaus

Hello Mr.Smith ,

I think your import should look like this,

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

Please check and confirm.

Avatar
Hylkää
Tekijä

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.

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
elok. 23
5254
1
jouluk. 24
4284
0
kesäk. 21
2336
2
toukok. 24
5145
3
kesäk. 22
5422