Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6221 Zobrazení

I need to override the controller for the account settings in a website portal so I can add some new fields. How can I import the controller?

I tried with 

from addons.website_portal.controllers.main import website_account

but I get only "ImportError: No module named addons.website_portal.controllers.main".

Avatar
Zrušit
Nejlepší odpověď
from odoo.addons.website_portal.controllers.main import website_account

This is correct, you just ensure the website_portal is added as depends on manifest file.


Avatar
Zrušit
Autor

I have it in depends, but I missed "odoo" before addons. Thanks for help!

Autor

Sorry, can't upvote your answer, clicking the up arrow but nothing happens.

seems like a bug

Related Posts Odpovědi Zobrazení Aktivita
1
lis 19
8563
0
bře 17
4821
2
čvc 24
4144
3
dub 24
4815
5
úno 24
24094