Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6260 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 19
8599
0
มี.ค. 17
4856
Data from website with controller แก้ไขแล้ว
2
ก.ค. 24
4170
3
เม.ย. 24
4862
5
ก.พ. 24
24149