mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_session_auto_close
This commit adds the web_session_auto_close module which purpose is to is to automatically close the session when the last odoo tab is closed or when the computer gets in idle mode. The `timeout` occurs 15 seconds after the tab has been closed or the computer got idle.
This commit is contained in:
19
web_session_auto_close/views/assets_common.xml
Normal file
19
web_session_auto_close/views/assets_common.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template
|
||||
id="assets_common"
|
||||
inherit_id="web.assets_common"
|
||||
name="Web Session Auto Close Assets Common"
|
||||
>
|
||||
<xpath expr="." position="inside">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/web_session_auto_close/static/src/js/local_storage_mixin.js"
|
||||
/>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/web_session_auto_close/static/src/js/session.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user