mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
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.
20 lines
571 B
XML
20 lines
571 B
XML
<?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>
|