Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6252 Visualizzazioni

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
Abbandona
Risposta migliore
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
Abbandona
Autore

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

Autore

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

seems like a bug

Post correlati Risposte Visualizzazioni Attività
1
nov 19
8587
0
mar 17
4848
2
lug 24
4164
3
apr 24
4847
5
feb 24
24132