Skip to content

Commit

Permalink
Merge PR #957 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Sep 26, 2023
2 parents 2f827c1 + d1774b9 commit 0c056bc
Show file tree
Hide file tree
Showing 36 changed files with 2,181 additions and 0 deletions.
94 changes: 94 additions & 0 deletions pos_access_right/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
==================================
Point of Sale - Extra Access Right
==================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/16.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-14-0/pos-14-0-pos_access_right
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/16.0
:alt: Try me on Runbot

|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
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
: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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_access_right%0Aversion:%2014.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>
* Ammmar Officewala <https://twitter.com/AmmarOfficewala>
* 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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.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
29 changes: 29 additions & 0 deletions pos_access_right/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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": "16.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_access_right/static/src/css/*",
"pos_access_right/static/src/js/*.js",
"pos_access_right/static/src/xml/*.xml",
]
},
"qweb": [
"static/src/xml/*.xml",
],
"installable": True,
}
51 changes: 51 additions & 0 deletions pos_access_right/demo/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?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>
155 changes: 155 additions & 0 deletions pos_access_right/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_access_right
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-10-21 18:32+0000\n"
"Last-Translator: Osoul <baruni@osoul.ly>\n"
"Language-Team: none\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"X-Generator: Weblate 3.8\n"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:142
#, python-format
msgid "Change Unit Price - Unauthorized function"
msgstr "تغيير سعر البيع - ليس لديك صلاحية"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:87
#, python-format
msgid "Delete Order - Unauthorized function"
msgstr "حذف أمر مبيعات - ليس لديك صلاحية"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:135
#, python-format
msgid "Discount - Unauthorized function"
msgstr "تخفيض - ليس لديك صلاحية"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:70
#, python-format
msgid "Many Orders - Unauthorized function"
msgstr "تعدد أوامر مبيعات - ليس لديك صلاحية"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:115
#, python-format
msgid "Negative Quantity - Unauthorized function"
msgstr "كمية بالسالب - ليس لديك صلاحية"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:166
#, python-format
msgid "Payment - Unauthorized function"
msgstr "الدفع - ليس لديك صلاحية"

#. module: pos_access_right
#. openerp-web
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:71
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:88
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:116
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:136
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:143
#: code:addons/pos_access_right/static/src/js/pos_access_right.js:167
#, python-format
msgid "Please ask your manager to do it."
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 ""

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

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

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

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

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

0 comments on commit 0c056bc

Please sign in to comment.