Skip to Content
Menu
This question has been flagged
1 Atsakyti
6133 Rodiniai

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

Portretas
Atmesti
Best Answer
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.


Portretas
Atmesti
Autorius

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

Autorius

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

seems like a bug

Related Posts Replies Rodiniai Veikla
1
lapkr. 19
8446
0
kov. 17
4685
2
liep. 24
4029
3
bal. 24
4635
5
vas. 24
23896