Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4152 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 17
5034
0
thg 7 20
2606
1
thg 7 25
543
2
thg 6 25
2178
3
thg 4 25
2432