Skip to Content
मेन्यू
This question has been flagged
1 Reply
6289 Views

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


Avatar
Discard
Author

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

Author

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

seems like a bug

Related Posts Replies Views Activity
1
नव॰ 19
8621
0
मार्च 17
4887
2
जुल॰ 24
4189
3
अप्रैल 24
4898
5
फ़र॰ 24
24177