Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a984880
ADD pos_user_restriction
eLBati Jul 1, 2020
a4ae980
Added translation using Weblate (Spanish)
danimv5 Jul 27, 2020
35b3586
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
e1bbba1
FIX pos_user_restriction allowing "User: Assigned POS Only" to see po…
eLBati Jul 31, 2020
d93fcaa
pos_user_restriction 12.0.1.0.1
OCA-git-bot Jul 31, 2020
04bd344
[FIX] pos_user_restriction: disable test that are failing if pos_rest…
legalsylvain Dec 23, 2020
8b8bbcc
pos_user_restriction 12.0.1.0.2
OCA-git-bot Dec 28, 2020
9069185
[IMP]pos_user_restriction: black, isort, prettier
hkapatel-initos May 14, 2021
80cd5ee
[MIG] pos_user_restriction: Migration to 14.0
hkapatel-initos May 14, 2021
7c0a988
[IMP][14.0] pos_user_restriction
AshishHirapara Oct 11, 2022
b7f423c
[MIG] pos_user_restriction: Migration to 15.0
Jun 8, 2023
90d773e
[UPD] Update pos_user_restriction.pot
Jul 4, 2023
50ecb6b
[UPD] README.rst
OCA-git-bot Jul 4, 2023
9bc186a
[UPD] README.rst
OCA-git-bot Sep 3, 2023
180da06
Update translation files
weblate Oct 9, 2023
21ce8d8
Translated using Weblate (Italian)
mymage Oct 13, 2023
82be46f
Translated using Weblate (Spanish)
Ivorra78 Nov 15, 2023
9803353
[IMP] pos_user_restriction: pre-commit auto fixes
em230418 Oct 25, 2024
a4117fd
[MIG] pos_user_restriction: migrate to 17.0
em230418 Oct 25, 2024
277cb22
[IMP] pos_user_restriction: add tests for get_closing_control_data
em230418 Oct 28, 2024
da28cc3
[UPD] Update pos_user_restriction.pot
Dec 27, 2024
332ab10
[BOT] post-merge updates
OCA-git-bot Dec 27, 2024
e71dd7f
Update translation files
weblate Dec 27, 2024
94cddd6
Translated using Weblate (Italian)
mymage Dec 28, 2024
9912b89
[IMP] pos_user_restriction: Restrict POS report orders
peluko00 Feb 28, 2025
84648bf
[FIX] pos_user_restriction: Change tests, as they were colliding with…
etobella Sep 19, 2025
9638034
[BOT] post-merge updates
OCA-git-bot Sep 23, 2025
15e348a
[17.0][FIX] pos_user_restriction: Fix can't close session with POS As…
peluko00 Mar 24, 2025
4dfc48f
[BOT] post-merge updates
OCA-git-bot Nov 11, 2025
8d91f6e
[IMP] pos_user_restriction: pre-commit auto fixes
christian-ramos-tecnativa Nov 11, 2025
744c93d
[MIG] pos_user_restriction: Migration to version 18.0
christian-ramos-tecnativa Nov 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions pos_user_restriction/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
==============================
Point of Sale - Restrict users
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:14c113ae43cdb58649f9a57b0af2db06dad9125ea6c9a4c7507c22c366e08b9b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/18.0/pos_user_restriction
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-18-0/pos-18-0-pos_user_restriction
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Restrict some users to only access their assigned points of sale.

**Table of contents**

.. contents::
:local:

Configuration
=============

With a POS Manager, open a point of sale configration (pos.config) and
set "Assigned users" field.

Then, assign "User: Assigned POS Only" group to users who should be able
to access to their assigned points of sale only.

Allowed Employees Then assign "Authorized Employees" employee the same
user "Assigned POS Only" Use employee credentials to log in to the PoS
session and switch cashier.

Known issues / Roadmap
======================

This module alone is not compatible with pos_cache; you need to install
a bridge module like
https://github.com/OCA/pos/tree/12.0/pos_cache_user_restriction for it
to work.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_user_restriction%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* TAKOBI

Contributors
------------

- Lorenzo Battistini (https://takobi.online)
- Helly kapatel <helly.kapatel@initos.com>
- [APSL-Nagarro](https://apsl.tech):

- Antoni Marroig <amarroig@apsl.net>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-eLBati| image:: https://github.com/eLBati.png?size=40px
:target: https://github.com/eLBati
:alt: eLBati

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-eLBati|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/18.0/pos_user_restriction>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_user_restriction/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions pos_user_restriction/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2020 Lorenzo Battistini @ TAKOBI
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Point of Sale - Restrict users",
"summary": "Restrict some users to see and use only certain points of sale",
"version": "18.0.1.0.0",
"development_status": "Beta",
"category": "Point of Sale",
"website": "https://github.com/OCA/pos",
"author": "TAKOBI, Odoo Community Association (OCA)",
"maintainers": ["eLBati"],
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": [
"point_of_sale",
],
"data": [
"security/pos_security.xml",
"security/ir.model.access.csv",
"views/pos_config_views.xml",
"views/point_of_sale_views.xml",
],
}
91 changes: 91 additions & 0 deletions pos_user_restriction/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_user_restriction
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-15 20:36+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_user_restriction
#: model:ir.model.fields,field_description:pos_user_restriction.field_pos_config__assigned_user_ids
msgid "Assigned users"
msgstr "Usuarios asignados"

#. module: pos_user_restriction
#: model:ir.model,name:pos_user_restriction.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del punto de venta"

#. module: pos_user_restriction
#: model:ir.model,name:pos_user_restriction.model_pos_session
msgid "Point of Sale Session"
msgstr "Sesión del Punto de Venta"

#. module: pos_user_restriction
#: model:ir.model.fields,field_description:pos_user_restriction.field_pos_config__group_pos_user_id
msgid "Point of Sale User Group"
msgstr "Grupo de Usuarios de Puntos de Venta"

#. module: pos_user_restriction
#: model_terms:ir.ui.view,arch_db:pos_user_restriction.pos_config_view_form_users
msgid ""
"Restrict some users to only access their assigned points of sale. In order "
"to apply the restriction, the user needs the 'User: Assigned POS Only' group"
msgstr ""
"Restrinja a algunos usuarios para que solo accedan a sus puntos de venta "
"asignados. Para aplicar la restricción, el usuario necesita el grupo "
"'Usuario: PdV asignado solo'"

#. module: pos_user_restriction
#: model:ir.model.fields,help:pos_user_restriction.field_pos_config__assigned_user_ids
msgid ""
"Restrict some users to only access their assigned points of sale.In order to "
"apply the restriction, the user needs the 'User: Assigned POS Only' group"
msgstr ""
"Restringir a algunos usuarios el acceso únicamente a los puntos de venta que "
"tienen asignados. Para aplicar la restricción, el usuario necesita el grupo "
"\"Usuario: Sólo puntos de venta asignados\""

#. module: pos_user_restriction
#: model:res.groups,comment:pos_user_restriction.group_assigned_points_of_sale_user
msgid "The user will have access to her assigned points of sale."
msgstr "El usuario tendrá acceso a sus puntos de venta asignados."

#. module: pos_user_restriction
#: model:ir.model.fields,help:pos_user_restriction.field_pos_config__group_pos_user_id
msgid ""
"This field is there to passthe id of the pos user group to the point of sale "
"client."
msgstr ""
"Este campo sirve para pasar el id del grupo de usuarios pos al cliente del "
"punto de venta."

#. module: pos_user_restriction
#: model:ir.model,name:pos_user_restriction.model_res_users
msgid "User"
msgstr ""

#. module: pos_user_restriction
#: model:res.groups,name:pos_user_restriction.group_assigned_points_of_sale_user
msgid "User: Assigned POS Only"
msgstr "Usuario: Solo PdV asignado"

#. module: pos_user_restriction
#: model_terms:ir.ui.view,arch_db:pos_user_restriction.pos_config_view_form_users
msgid "Users"
msgstr "Usuarios"

#. module: pos_user_restriction
#: model_terms:ir.ui.view,arch_db:pos_user_restriction.pos_config_view_form_users
msgid "Users assigned to this point of sale"
msgstr "Usuarios asignados a este punto de venta"
92 changes: 92 additions & 0 deletions pos_user_restriction/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_user_restriction
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-07-07 04:49+0000\n"
"PO-Revision-Date: 2024-12-28 14:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: \n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: pos_user_restriction
#: model:ir.model.fields,field_description:pos_user_restriction.field_pos_config__assigned_user_ids
msgid "Assigned users"
msgstr "Utenti assegnati"

#. module: pos_user_restriction
#: model:ir.model,name:pos_user_restriction.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configurazione punto vendita"

#. module: pos_user_restriction
#: model:ir.model,name:pos_user_restriction.model_pos_session
msgid "Point of Sale Session"
msgstr "Sessione punto vendita"

#. module: pos_user_restriction
#: model:ir.model.fields,field_description:pos_user_restriction.field_pos_config__group_pos_user_id
msgid "Point of Sale User Group"
msgstr "Gruppo utente punto vendita"

#. module: pos_user_restriction
#: model_terms:ir.ui.view,arch_db:pos_user_restriction.pos_config_view_form_users
msgid ""
"Restrict some users to only access their assigned points of sale. In order "
"to apply the restriction, the user needs the 'User: Assigned POS Only' group"
msgstr ""
"Limitare alcuni utenti ad accedere solamente ai loro punti vendita "
"assegnati. Per applicare la restrizione, l'utente necessita il gruppo "
"'Utente: solamente POS assegnati'"

#. module: pos_user_restriction
#: model:ir.model.fields,help:pos_user_restriction.field_pos_config__assigned_user_ids
msgid ""
"Restrict some users to only access their assigned points of sale.In order to "
"apply the restriction, the user needs the 'User: Assigned POS Only' group"
msgstr ""
"Limitare alcuni utenti ad accedere solamente ai loro punti vendita "
"assegnati. Per applicare la restrizione, l'utente necessita il gruppo "
"'Utente: solamente POS assegnati'"

#. module: pos_user_restriction
#: model:res.groups,comment:pos_user_restriction.group_assigned_points_of_sale_user
msgid "The user will have access to her assigned points of sale."
msgstr "L'utente avrà accesso ai propri punti vendita assegnati."

#. module: pos_user_restriction
#: model:ir.model.fields,help:pos_user_restriction.field_pos_config__group_pos_user_id
msgid ""
"This field is there to passthe id of the pos user group to the point of sale "
"client."
msgstr ""
"Questo campo serve a trasferire l'ID del gruppo utente POS al client punto "
"vendita."

#. module: pos_user_restriction
#: model:ir.model,name:pos_user_restriction.model_res_users
msgid "User"
msgstr "Utente"

#. module: pos_user_restriction
#: model:res.groups,name:pos_user_restriction.group_assigned_points_of_sale_user
msgid "User: Assigned POS Only"
msgstr "Utente: solamente POS assegnati"

#. module: pos_user_restriction
#: model_terms:ir.ui.view,arch_db:pos_user_restriction.pos_config_view_form_users
msgid "Users"
msgstr "Utenti"

#. module: pos_user_restriction
#: model_terms:ir.ui.view,arch_db:pos_user_restriction.pos_config_view_form_users
msgid "Users assigned to this point of sale"
msgstr "Utenti assegnati a questo punto vendita"
Loading
Loading