コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6242 ビュー

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

アバター
破棄
最善の回答
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.


アバター
破棄
著作者

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

著作者

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

seems like a bug

関連投稿 返信 ビュー 活動
1
11月 19
8571
0
3月 17
4838
2
7月 24
4158
3
4月 24
4823
5
2月 24
24102