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

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 15
2999
0
ก.พ. 24
1355
2
ก.ค. 19
4540
0
พ.ค. 17
3659
0
พ.ย. 23
2762