Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6128 Vistas

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
Descartar
Mejor respuesta
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
Descartar
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

Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 19
8445
0
mar 17
4679
2
jul 24
4026
3
abr 24
4627
5
feb 24
23889