Skip to content

Commit

Permalink
Merge PR #1256 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by hbrunn
  • Loading branch information
OCA-git-bot committed Dec 27, 2024
2 parents ca2349f + b74fd6c commit 7ccae6e
Show file tree
Hide file tree
Showing 24 changed files with 1,183 additions and 0 deletions.
106 changes: 106 additions & 0 deletions pos_user_restriction/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
==============================
Point of Sale - Restrict users
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a649088e7d710b708f47d708db73c717872871b9fbc7087a4031803b91f046c8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/17.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-17-0/pos-17-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=17.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:%2017.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>

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/17.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": "17.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",
],
}
87 changes: 87 additions & 0 deletions pos_user_restriction/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 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: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:ir.model,name:pos_user_restriction.model_res_users
#: 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"
88 changes: 88 additions & 0 deletions pos_user_restriction/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# 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: 2023-10-13 15:36+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 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 "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: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:ir.model,name:pos_user_restriction.model_res_users
#: 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"
76 changes: 76 additions & 0 deletions pos_user_restriction/i18n/pos_user_restriction.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_user_restriction
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

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

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

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

#. 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 ""

#. 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 ""

#. 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 ""

#. 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 ""

#. 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 ""

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

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

#. 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 ""
3 changes: 3 additions & 0 deletions pos_user_restriction/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import pos_config
from . import pos_session
from . import res_users
Loading

0 comments on commit 7ccae6e

Please sign in to comment.