コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4164 ビュー

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
5036
0
7月 20
2612
1
7月 25
554
2
6月 25
2186
3
4月 25
2443