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

Hello, I builded website in odoo using graphical editor. Next i wanted to add login form.

<form class="oe_login_form" role="form" t-attf-action="/web/login{{ '?debug' if debug else '' }}" method="post" onsubmit="this.action = this.action + location.hash"> 
INPUTS
</form>
Then I can not edit site anymore by graphical editor. I can run edit, edit content(text) but can not delete or insert blocks. 
The same thing happens when I add 

<t t-if="website.user_id == user_id">

Which should check if user is logged or not and display suitable content. 

How should I insert that code? 


Odoo 12 community

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Have 0 errors with my code. By visual editor i Can insert new blocks only at the very end of site. Can not move existing 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

That means you are getting the error. Please check the browser console and debug it. If you can access the backend, then 

activate developer mode, goto settings-> Technical -> user interfaces -> website view(select the correct view edited.), clear the wrong codes.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 17
5034
0
ก.ค. 20
2606
1
ก.ค. 25
547
2
มิ.ย. 25
2182
3
เม.ย. 25
2442