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

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.

아바타
취소
관련 게시물 답글 화면 활동
0
8월 17
5038
0
7월 20
2614
1
7월 25
568
2
6월 25
2194
3
4월 25
2450