Skip to content

Commit 6f93425

Browse files
committed
🎉1️⃣3️⃣ pos_logout
previous commits history: https://github.com/itpp-labs/pos-addons/commits/13.0/pos_logout > Made via .github/workflows/DINAR-PORT.yml
1 parent f5f9770 commit 6f93425

File tree

17 files changed

+459
-0
lines changed

17 files changed

+459
-0
lines changed

pos_logout/README.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.. image:: https://itpp.dev/images/infinity-readme.png
2+
:alt: Tested and maintained by IT Projects Labs
3+
:target: https://itpp.dev
4+
5+
=================
6+
Lock POS Screen
7+
=================
8+
9+
Automatically lock pos on inactivity
10+
11+
Questions?
12+
==========
13+
14+
To get an assistance on this module contact us by email :arrow_right: [email protected]
15+
16+
Contributors
17+
============
18+
* `Gabbasov Dinar <https://it-projects.info/team/GabbasovDinar>`__
19+
* `Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>`__
20+
* `Kildebekov Anvar <https://it-projects.info/team/kildebekov>`__
21+
22+
===================
23+
24+
Odoo Apps Store: https://apps.odoo.com/apps/modules/13.0/pos_logout/
25+
26+
27+
Tested on `Odoo 13.0 <https://github.com/odoo/odoo/commit/2d46a08a989f4c7e005ee2ead7c342c72019e63f>`_

pos_logout/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License MIT (https://opensource.org/licenses/MIT).
2+
3+
from . import models

pos_logout/__manifest__.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2017 Artyom Losev <https://github.com/ArtyomLosev>
2+
# Copyright 2017-2018 Ilmir Karamov <https://it-projects.info/team/ilmir-k>
3+
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
4+
# Copyright 2020 Almas Giniatullin <https://it-projects.info/team/almas50>
5+
# Copyright 2021 Denis Mudarisov <https://github.com/trojikman>
6+
# License MIT (https://opensource.org/licenses/MIT).
7+
{
8+
"name": """Lock POS Screen""",
9+
"summary": """Automatically lock pos on inactivity""",
10+
"category": "Point of Sale",
11+
# "live_test_url": "http://apps.it-projects.info/shop/product/pos-logout?version=13.0",
12+
"images": ["images/pos_logout_main.png"],
13+
"version": "13.0.2.0.0",
14+
"application": False,
15+
"author": "IT-Projects LLC, Dinar Gabbasov",
16+
"support": "[email protected]",
17+
"website": "https://github.com/itpp-labs/pos-addons#readme",
18+
"license": "Other OSI approved licence", # MIT
19+
"price": 20.00,
20+
"currency": "EUR",
21+
"depends": ["point_of_sale"],
22+
"external_dependencies": {"python": [], "bin": []},
23+
"data": ["views/pos_logout.xml"],
24+
"qweb": ["static/src/xml/pos.xml"],
25+
"demo": [],
26+
"post_load": None,
27+
"pre_init_hook": None,
28+
"post_init_hook": None,
29+
"auto_install": False,
30+
"installable": True,
31+
}

pos_logout/doc/changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
`2.0.0`
2+
-------
3+
4+
**Improvement:** removed `pos_pin` dependency due to existing functionality
5+
6+
`1.0.0`
7+
-------
8+
9+
- Init version

pos_logout/doc/index.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
=================
2+
Lock POS Screen
3+
=================
4+
5+
Installation
6+
============
7+
8+
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way
9+
10+
Configuration
11+
=============
12+
13+
* Open menu ``[[ Point of Sale ]] >> Configuration >> Point of Sale``
14+
* Choose the POS where you need the ability to lock the screen
15+
* Enable `Login with Employees` and set `Allowed Employees` or you can leave this field blank
16+
17+
Setting auto-locking interval
18+
-----------------------------
19+
20+
The last activity interval to activate the automatic screen lock. Zero if auto-locking is not needed
21+
22+
* Open menu ``[[ Point of Sale ]] >> Configuration >> Point of Sale``
23+
24+
* Open POS configuration form
25+
* Click ``[Edit]``
26+
* Input in **Screen Auto-lock** a number of seconds before auto-locking. Zero if auto-locking is not needed
27+
* Click ``[Save]``
28+
29+
Setting **Badge ID** and/or **Security PIN** for login the POS
30+
--------------------------------------------------------------
31+
32+
* Go to ``Employees``
33+
34+
* Open user form
35+
* Open **HR Settings** tab
36+
* Set **Badge ID** and/or **Security PIN**
37+
38+
Usage
39+
=====
40+
41+
The last activity interval to activate the automatic screen lock. Zero if autolocking is not needed
42+
43+
* Open menu ``[[ Point of Sale ]] >> Configuration >> Point of Sale``
44+
45+
* Open POS configuration form
46+
* Click ``[Edit]``
47+
* Input in **Autolock** a number of seconds before autolocking. Zero if autolocking is not needed
48+
* Click ``[Save]``

pos_logout/i18n/pos_logout.pot

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_logout
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: <>\n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: pos_logout
17+
#: model:ir.model,name:pos_logout.model_pos_config
18+
msgid "Point of Sale Configuration"
19+
msgstr ""
20+
21+
#. module: pos_logout
22+
#: model:ir.model.fields,field_description:pos_logout.field_pos_config__logout_interval
23+
msgid "Screen Autolock"
24+
msgstr ""
25+
26+
#. module: pos_logout
27+
#. openerp-web
28+
#: code:addons/pos_logout/static/src/xml/pos.xml:18
29+
#, python-format
30+
msgid "Tap to unlock..."
31+
msgstr ""
32+
33+
#. module: pos_logout
34+
#: model:ir.model.fields,help:pos_logout.field_pos_config__logout_interval
35+
#: model_terms:ir.ui.view,arch_db:pos_logout.view_pos_config_form
36+
msgid "The last activity interval to activate the automatic screen lock. Zero if autolocking is not needed"
37+
msgstr ""
38+
259 KB
Loading

pos_logout/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License MIT (https://opensource.org/licenses/MIT).
2+
3+
from . import logout_config

pos_logout/models/logout_config.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
2+
# License MIT (https://opensource.org/licenses/MIT).
3+
4+
from odoo import fields, models
5+
6+
7+
class PosConfig(models.Model):
8+
_inherit = "pos.config"
9+
10+
logout_interval = fields.Integer(
11+
string="Screen Auto-lock",
12+
default=0,
13+
help="The last activity interval to activate the automatic screen lock. Zero if autolocking is not needed",
14+
)
1.87 KB
Loading

0 commit comments

Comments
 (0)