diff --git a/pos_idle_time_session_lock/__manifest__.py b/pos_idle_time_session_lock/__manifest__.py index 475fba1c9..31623e762 100644 --- a/pos_idle_time_session_lock/__manifest__.py +++ b/pos_idle_time_session_lock/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': "POS Idle Session Lock", - 'version': '16.0.1.0.0', + 'version': '16.0.1.0.1', 'category': 'Point of Sale', 'summary': """The Module Allows the POS User to Set Screen Lock for POS Screen""", diff --git a/pos_idle_time_session_lock/doc/RELEASE_NOTES.md b/pos_idle_time_session_lock/doc/RELEASE_NOTES.md index 630039985..2065d033e 100644 --- a/pos_idle_time_session_lock/doc/RELEASE_NOTES.md +++ b/pos_idle_time_session_lock/doc/RELEASE_NOTES.md @@ -3,3 +3,9 @@ #### Version 16.0.1.0.0 ##### ADD - Initial commit POS Idle Session Lock + + +#### 23.05.2025 +#### Version 16.0.1.0.1 +#### UPDT +- Bug fix in PosTimerChrome class.Fixed an issue that occurred while loading the POS session. diff --git a/pos_idle_time_session_lock/static/src/js/session_timer.js b/pos_idle_time_session_lock/static/src/js/session_timer.js index 6065c3efa..81539e1ed 100644 --- a/pos_idle_time_session_lock/static/src/js/session_timer.js +++ b/pos_idle_time_session_lock/static/src/js/session_timer.js @@ -18,6 +18,9 @@ var count_down_time; const PosTimerChrome = (Chrome) => class extends Chrome { // Timer main function for set the timer + setup() { + super.setup(); + } set_timer() { var self = this; var count_down_time = this.env.pos.config.idle_time_limit @@ -35,9 +38,9 @@ const PosTimerChrome = (Chrome) => var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); if (hours) { - this.body.children[1].querySelector('#times').textContent = hours + " h " + minutes + " m " + seconds + " s "; + this.document.body.querySelector('#times').textContent = hours + " h " + minutes + " m " + seconds + " s "; } else { - this.body.children[1].querySelector('#times').textContent= minutes + " m " + seconds + " s "; + this.document.body.querySelector('#times').textContent= minutes + " m " + seconds + " s "; } if (distance < 0) { clearInterval(x);