Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.0 mig pos access right #987

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5bdc5ad
[ADD] new module 'pos_access_right'
legalsylvain Jan 31, 2016
fde40da
[REF] improve description;
legalsylvain Feb 1, 2016
10c1705
[ADD] fr translation;
legalsylvain Apr 4, 2016
d1426e9
[ADD] new blockage;
legalsylvain Jul 23, 2016
64de21b
[ADD] fr translation;
legalsylvain Jul 23, 2016
29a6c2a
[FIX]
legalsylvain Jul 23, 2016
70ddecb
[FIX] display;
legalsylvain Jul 24, 2016
4ff2528
[FIX] remove useless feature;[FIX] bug on multi order check
legalsylvain Oct 13, 2016
71e0ace
[REF] rename fields
legalsylvain Nov 2, 2016
993e939
[FIX] add missing author
legalsylvain Nov 2, 2016
2e10e49
[REF] improve fr translation
legalsylvain Nov 2, 2016
6de4aa2
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
be3e1a8
[UPD] Update pos_access_right.pot
oca-travis Jun 23, 2018
f73441d
[MIG] pos_access_right: Migration to 12.0
Oct 29, 2018
3d95feb
[UPD] README.rst
OCA-git-bot Nov 5, 2018
24473f7
[UPD] Update pos_access_right.pot
oca-travis Nov 5, 2018
d070daa
Update translation files
oca-transbot Dec 9, 2018
6ef1c2d
Added translation using Weblate (Russian)
May 30, 2019
077f02a
Translated using Weblate (Russian)
May 30, 2019
4176f40
[ADD] block payment button
KolushovAlexandr Jul 2, 2019
9e33b29
[UPD] Update pos_access_right.pot
oca-travis Jul 3, 2019
33f98e1
[FIX] eslint
legalsylvain Jul 11, 2019
cb27f7a
[UPD] Update pos_access_right.pot
oca-travis Jul 11, 2019
b3e040c
pos_access_right 12.0.1.0.1
OCA-git-bot Jul 11, 2019
8a6de3f
Update translation files
oca-transbot Jul 20, 2019
fbf0151
[UPD] README.rst
OCA-git-bot Jul 29, 2019
3e79e82
[MIG] pos_access_right : Migaration to 13.0
ammarofficewla Oct 5, 2019
19a990c
[IMP] : black, isort, prettier
hkapatel-initos Apr 23, 2021
aeac585
[MIG] pos_access_right: Migration to 14.0
hkapatel-initos Apr 23, 2021
a4d2fac
[UPD] Update pos_access_right.pot
oca-travis May 28, 2021
f3dacb8
[UPD] README.rst
OCA-git-bot May 28, 2021
1636907
pos_access_right 14.0.1.0.1
OCA-git-bot May 28, 2021
a8ac624
Translated using Weblate (French)
kh-badep Feb 16, 2022
9d63c7c
Translated using Weblate (Catalan)
Noel000 Mar 23, 2022
b6dcf79
[FIX] pos_access_right : remove bad css that impact all PoS
legalsylvain Jun 30, 2022
bb6cbc3
pos_access_right 14.0.1.0.2
OCA-git-bot Jul 5, 2022
264d597
Added translation using Weblate (Italian)
mymage Mar 9, 2023
e825cae
Translated using Weblate (Italian)
mymage Mar 9, 2023
833283f
[IMP] pos_access_right: pre-commit stuff
jumeldi74 Apr 24, 2023
1bb1fbc
[MIG] pos_access_right: Migration to 16.0
jumeldi74 Apr 24, 2023
e9bb9be
[MIG] pos_access_right: Migration to 16.0 - revision
jumeldi74 Apr 25, 2023
ec413be
[MIG] pos_access_right: Migration to 16.0 - final modification and me…
jumeldi74 May 29, 2023
32c1b4c
[MIG] pos_access_right: Migration to 16.0 - Adding Refund Action Acce…
jumeldi74 Jun 6, 2023
c29160e
[MIG] pos_access_right: Migration to 16.0 - Add access right for Cash…
jumeldi74 Jun 16, 2023
16dfbc6
[MIG] pos_access_right: Migration to 16.0 - Add group access right in…
jumeldi74 Jun 19, 2023
3f2c5e9
[MIG] pos_access_right: Migration to 16.0 - Add group access right in…
jumeldi74 Jun 20, 2023
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
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": ["pos_hr"],
"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,
}
65 changes: 65 additions & 0 deletions pos_access_right/demo/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?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_delete_order_line" 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>

<record id="group_refund_action" 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