콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6146 화면

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
8457
0
3월 17
4698
2
7월 24
4046
3
4월 24
4665
5
2월 24
23923