Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
6220 Vues

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
Ignorer
Meilleure réponse
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
Ignorer
Auteur

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

Auteur

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

seems like a bug

Publications associées Réponses Vues Activité
1
nov. 19
8562
0
mars 17
4816
2
juil. 24
4138
3
avr. 24
4813
5
févr. 24
24089