Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6244 Widoki

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".

Awatar
Odrzuć
Najlepsza odpowiedź
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.


Awatar
Odrzuć
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

Powiązane posty Odpowiedzi Widoki Czynność
1
lis 19
8572
0
mar 17
4838
2
lip 24
4159
3
kwi 24
4823
5
lut 24
24102