Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
100 changes: 100 additions & 0 deletions pos_operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
========================
POS with Operating Units
========================

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

.. |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%2Foperating--unit-lightgray.png?logo=github
:target: https://github.com/OCA/operating-unit/tree/18.0/pos_operating_unit
:alt: OCA/operating-unit
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/operating-unit-18-0/operating-unit-18-0-pos_operating_unit
: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/operating-unit&target_branch=18.0
:alt: Try me on Runboat

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

This module adds a field "operating unit" in POS with the only goal of
restricting visibility (therefore access) to users with same OU allowed.

This also applies to sessions, orders and payments in POS.

A "Point of sale" field is added to orders and payments for clarity.

**Table of contents**

.. contents::
:local:

Usage
=====

In POS config, set operating unit(s) allowed to see this POS.

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

This module only manages visibility of POS and related orders. If a more
complete "pos_operating_unit" is proposed and merged, then it should
cover features of this module which can be discontinued.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/operating-unit/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/operating-unit/issues/new?body=module:%20pos_operating_unit%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
-------

* Ilyas
* Ooops404

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

- Ooops404 https://ooops404.com

- Ilyas [email protected]

- Nybble Group https://www.nybblegroup.com

- Cristiam Carreño [email protected]

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.

This module is part of the `OCA/operating-unit <https://github.com/OCA/operating-unit/tree/18.0/pos_operating_unit>`_ 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_operating_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions pos_operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "POS with Operating Units",
"version": "18.0.1.0.0",
"author": "Ilyas, Ooops404, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/operating-unit",
"category": "Point of sale",
"depends": ["point_of_sale", "operating_unit"],
"license": "LGPL-3",
"data": [
"security/pos_security.xml",
"views/pos_views.xml",
"views/res_config_settings_views.xml",
],
}
83 changes: 83 additions & 0 deletions pos_operating_unit/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-01-11 19:34+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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_operating_unit
#: model:ir.model,name:pos_operating_unit.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_config__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order_line__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_payment__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_session__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_res_config_settings__pos_operating_unit_ids
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.pos_config_view_form_inherit_ou
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.res_config_settings_view_form
msgid "Operating Units"
msgstr "Unidades Operativas"

#. module: pos_operating_unit
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.pos_config_view_form_inherit_ou
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.res_config_settings_view_form
msgid "Operating units used for this POS"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order__config_id
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_payment__config_id
msgid "Point of Sale"
msgstr "Punto de Venta"

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del Punto de Venta"

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_order_line
msgid "Point of Sale Order Lines"
msgstr "Líneas de Pedidos en el Punto de Venta"

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_order
msgid "Point of Sale Orders"
msgstr "Pedidos en el Punto de Venta"

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_payment
msgid "Point of Sale Payments"
msgstr "Pagos en el Punto de Venta"

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

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"

#~ msgid "The physical point of sale you will use."
#~ msgstr "El punto de venta físico que usted utilizará."
83 changes: 83 additions & 0 deletions pos_operating_unit/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-30 14:06+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\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_operating_unit
#: model:ir.model,name:pos_operating_unit.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"

#. module: pos_operating_unit
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_config__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order_line__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_payment__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_session__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_res_config_settings__pos_operating_unit_ids
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.pos_config_view_form_inherit_ou
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.res_config_settings_view_form
msgid "Operating Units"
msgstr "Unità operative"

#. module: pos_operating_unit
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.pos_config_view_form_inherit_ou
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.res_config_settings_view_form
msgid "Operating units used for this POS"
msgstr "Unità operative utilizzate per questo POS"

#. module: pos_operating_unit
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order__config_id
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_payment__config_id
msgid "Point of Sale"
msgstr "Punto vendita"

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

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_order_line
msgid "Point of Sale Order Lines"
msgstr "Righe ordine punto vendita"

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_order
msgid "Point of Sale Orders"
msgstr "Ordini punto vendita"

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_payment
msgid "Point of Sale Payments"
msgstr "Pagamenti punto vendita"

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

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"

#~ msgid "The physical point of sale you will use."
#~ msgstr "Il punto vendita fisico che userai."
68 changes: 68 additions & 0 deletions pos_operating_unit/i18n/pos_operating_unit.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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_operating_unit
#: model:ir.model,name:pos_operating_unit.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_config__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order_line__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_payment__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_session__operating_unit_ids
#: model:ir.model.fields,field_description:pos_operating_unit.field_res_config_settings__pos_operating_unit_ids
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.pos_config_view_form_inherit_ou
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.res_config_settings_view_form
msgid "Operating Units"
msgstr ""

#. module: pos_operating_unit
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.pos_config_view_form_inherit_ou
#: model_terms:ir.ui.view,arch_db:pos_operating_unit.res_config_settings_view_form
msgid "Operating units used for this POS"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_order__config_id
#: model:ir.model.fields,field_description:pos_operating_unit.field_pos_payment__config_id
msgid "Point of Sale"
msgstr ""

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

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_order_line
msgid "Point of Sale Order Lines"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_order
msgid "Point of Sale Orders"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_payment
msgid "Point of Sale Payments"
msgstr ""

#. module: pos_operating_unit
#: model:ir.model,name:pos_operating_unit.model_pos_session
msgid "Point of Sale Session"
msgstr ""
5 changes: 5 additions & 0 deletions pos_operating_unit/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import pos_config
from . import pos_order
from . import pos_session
from . import pos_payment
from . import res_config_settings
11 changes: 11 additions & 0 deletions pos_operating_unit/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from odoo import fields, models


class POSConfig(models.Model):
_inherit = "pos.config"

operating_unit_ids = fields.Many2many(
"operating.unit",
"pos_config_operating_unit_rel",
string="Operating Units",
)
Loading