跳至內容
選單
此問題已被標幟
3 回覆
7443 瀏覽次數

Hi All,

I would like to raise a warning or a pop up message when a user logs in.

So can you kindly say under which function of what object/model should this code be written.

Thank you,

頭像
捨棄
最佳答案

Hello Sampath,

In ur user(admin) form view there one home action, first you need to create wizard or somthing to do, and that action yopu can set overe here... then that will work when ever people log in system.


Thank you

Logicious

頭像
捨棄
作者

Thanks Logicious.. It worked for me..!!

最佳答案

Dear Sampath

Since you've implemented this, Odoo went through a few versions and with that name changes of fields. Where in Technical Settings can I implement this please? Many thanks

頭像
捨棄
最佳答案

Goto, web/views/webclient_templates.xml JUST REPLACE THE BELOW CODE, Is shown an User Login popup message..


<div class="clearfix oe_login_buttons">

    <button type="submit" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Log in</button>

</div>

<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

<div class="modal-dialog modal-sm">

<div class="modal-content">

<div class="modal-header">

</div>

<div class="modal-body">

<p> User LOG IN </p>

</div>

</div>

</div>

</div>

頭像
捨棄
作者

Thanks CatsandDogs for the answer it works, but I wanted a pop up based on few condition only for specified users.

相關帖文 回覆 瀏覽次數 活動
0
11月 15
3012
0
2月 24
1357
2
7月 19
4543
0
5月 17
3667
0
11月 23
2775