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
107 changes: 107 additions & 0 deletions pos_access_right/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
==================================
Point of Sale - Extra Access Right
==================================

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

.. |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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-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_access_right
: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_access_right
: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|

This module extends Odoo Point Of Sale features, restricting possibility
to cashier to make some actions in the Point of Sale. This module will
add the following groups to Odoo:

- **PoS - Negative Quantity**: The cashier can sell negative quantity in
Point Of Sale (ie, can return products);
- **PoS - Discount**: The cashier can set Discount in Point Of Sale;
- **PoS - Change Unit Price**: The cashier can change the unit price of
a product in Point Of Sale;
- **PoS - Many Orders**: The cashier can many orders at the same time;
- **PoS - Delete Order**: The cashier can not delete a full order;

**Table of contents**

.. contents::
:local:

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

Once installed, you have to give correct access right to your cashiers.

Usage
=====

|Try me on Runbot|

.. |Try me on Runbot| image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:target: https://runbot.odoo-community.org/runbot/184/9.0

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_access_right%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
-------

* La Louve
* GRAP

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

- Sylvain LE GAL
<`https://twitter.com/legalsylvain\\> <https://twitter.com/legalsylvain\>>`__
- Ammmar Officewala
<`https://twitter.com/AmmarOfficewala\\> <https://twitter.com/AmmarOfficewala\>>`__
- Helly kapatel <helly.kapatel@initos.com>
- `Trobz <https://trobz.com>`__

- Phan Hong Phuc <phucph@trobz.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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/18.0/pos_access_right>`_ 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_access_right/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
28 changes: 28 additions & 0 deletions pos_access_right/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale - Extra Access Right",
"version": "18.0.1.0.0",
"category": "Point Of Sale",
"summary": "Point of Sale - Extra Access Right for certain actions",
"author": "La Louve, GRAP, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"demo": ["demo/res_groups.xml"],
"data": [
"security/res_groups.xml",
],
"assets": {
"point_of_sale._assets_pos": [
"pos_access_right/static/src/js/product_screen.esm.js",
"pos_access_right/static/src/js/action_pad.esm.js",
"pos_access_right/static/src/js/order_tabs.esm.js",
"pos_access_right/static/src/js/ticket_screen.esm.js",
"pos_access_right/static/src/xml/action_pad.xml",
]
},
"installable": True,
}
49 changes: 49 additions & 0 deletions pos_access_right/demo/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<record id="group_negative_qty" model="res.groups">
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

<record id="group_discount" model="res.groups">
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin')), (4, ref('base.user_demo'))]"
/>
</record>

<record id="group_change_unit_price" model="res.groups">
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

<record id="group_multi_order" model="res.groups">
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

<record id="group_delete_order" model="res.groups">
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

<record id="group_payment" model="res.groups">
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>
</odoo>
141 changes: 141 additions & 0 deletions pos_access_right/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_access_right
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-28 10:31+0000\n"
"PO-Revision-Date: 2026-01-28 10:31+0000\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_access_right
#. odoo-javascript
#: code:addons/pos_access_right/static/src/js/order_tabs.esm.js:0
#: code:addons/pos_access_right/static/src/js/product_screen.esm.js:0
msgid "Not Allowed"
msgstr "غير مسموح"

#. module: pos_access_right
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_discount_id
msgid "Point of Sale - Allow Discount"
msgstr "نقاط البيع - السماح بالتخفيض"

#. module: pos_access_right
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_negative_qty_id
msgid "Point of Sale - Allow Negative Quantity"
msgstr "نقاط البيع - السماح بالكمية بالسالب"

#. module: pos_access_right
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_change_unit_price_id
msgid "Point of Sale - Allow Unit Price Change"
msgstr "نقاط البيع - السماح بتغير سعر البيع"

#. module: pos_access_right
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_delete_order_id
#: model:res.groups,name:pos_access_right.group_delete_order
msgid "Point of Sale - Delete Order"
msgstr "نقاط البيع - السماح بحذف أمر مبيعات"

#. module: pos_access_right
#: model:res.groups,name:pos_access_right.group_discount
msgid "Point of Sale - Discount"
msgstr "نقاط البيع - التخفيض"

#. module: pos_access_right
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_multi_order_id
#: model:res.groups,name:pos_access_right.group_multi_order
msgid "Point of Sale - Many Orders"
msgstr "نقاط البيع - تعدد أوامر المبيعات"

#. module: pos_access_right
#: model:res.groups,name:pos_access_right.group_negative_qty
msgid "Point of Sale - Negative Quantity"
msgstr "نقاط البيع - الكمية بالسالب"

#. module: pos_access_right
#: model:ir.model.fields,field_description:pos_access_right.field_pos_config__group_payment_id
#: model:res.groups,name:pos_access_right.group_payment
msgid "Point of Sale - Payment"
msgstr "نقاط البيع - الدفع"

#. module: pos_access_right
#: model:res.groups,name:pos_access_right.group_change_unit_price
msgid "Point of Sale - Unit Price Change"
msgstr "نقاط البيع - تغيير سعر البيع"

#. module: pos_access_right
#: model:ir.model,name:pos_access_right.model_pos_config
msgid "Point of Sale Configuration"
msgstr "تهيئة نقطة البيع "

#. module: pos_access_right
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_discount_id
msgid ""
"This field is there to pass the id of the 'PoS - Allow Discount' Group to "
"the Point of Sale Frontend."
msgstr ""
"يُستخدم هذا الحقل لتمرير مُعرّف مجموعة PoS – السماح بالخصم إلى واجهة نقطة البيع الأمامية."

#. module: pos_access_right
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_negative_qty_id
msgid ""
"This field is there to pass the id of the 'PoS - Allow Negative Quantity' "
"Group to the Point of Sale Frontend."
msgstr ""
"يُستخدم هذا الحقل لتمرير مُعرّف مجموعة PoS – السماح بالكمية السالبة إلى واجهة نقطة البيع الأمامية."

#. module: pos_access_right
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_change_unit_price_id
msgid ""
"This field is there to pass the id of the 'PoS - Allow Unit Price Change' "
"Group to the Point of Sale Frontend."
msgstr ""
"يُستخدم هذا الحقل لتمرير مُعرّف مجموعة PoS – السماح بتغيير سعر الوحدة إلى واجهة نقطة البيع الأمامية."

#. module: pos_access_right
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_delete_order_id
msgid ""
"This field is there to pass the id of the 'PoS - Delete Order' Group to the "
"Point of Sale Frontend."
msgstr ""
"يُستخدم هذا الحقل لتمرير مُعرّف مجموعة PoS – حذف الطلب إلى واجهة نقطة البيع الأمامية."

#. module: pos_access_right
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_multi_order_id
msgid ""
"This field is there to pass the id of the 'PoS - Many Orders Group to the "
"Point of Sale Frontend."
msgstr ""
"يُستخدم هذا الحقل لتمرير مُعرّف مجموعة PoS – الطلبات المتعددة إلى واجهة نقطة البيع الأمامية."

#. module: pos_access_right
#: model:ir.model.fields,help:pos_access_right.field_pos_config__group_payment_id
msgid ""
"This field is there to pass the id of the 'PoS - Payment' Group to the Point"
" of Sale Frontend."
msgstr ""
"يُستخدم هذا الحقل لتمرير مُعرّف مجموعة PoS – الدفع إلى واجهة نقطة البيع الأمامية."

#. module: pos_access_right
#: model:ir.model,name:pos_access_right.model_res_users
msgid "User"
msgstr "المستخدم"

#. module: pos_access_right
#. odoo-javascript
#: code:addons/pos_access_right/static/src/js/order_tabs.esm.js:0
msgid "You do not have permission to open multiple order."
msgstr "ليس لديك إذن بفتح عدة طلبات."

#. module: pos_access_right
#. odoo-javascript
#: code:addons/pos_access_right/static/src/js/product_screen.esm.js:0
msgid "You do not have permission to set negative quantity."
msgstr "ليس لديك إذن بتعيين كمية سالبة."
Loading
Loading