From 570985ac5bd5f2ff7c5853293dcb966478922351 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Fri, 29 Sep 2023 13:26:46 +0200 Subject: [PATCH 1/2] [ADD] rma_readonly in v15 --- rma_readonly/README.rst | 31 ++++++++++++ rma_readonly/__init__.py | 0 rma_readonly/__manifest__.py | 16 ++++++ rma_readonly/security/ir.model.access.csv | 6 +++ rma_readonly/security/rma.xml | 10 ++++ rma_readonly/views/rma_menus.xml | 54 +++++++++++++++++++++ setup/rma_readonly/odoo/addons/rma_readonly | 1 + setup/rma_readonly/setup.py | 6 +++ 8 files changed, 124 insertions(+) create mode 100644 rma_readonly/README.rst create mode 100644 rma_readonly/__init__.py create mode 100644 rma_readonly/__manifest__.py create mode 100644 rma_readonly/security/ir.model.access.csv create mode 100644 rma_readonly/security/rma.xml create mode 100644 rma_readonly/views/rma_menus.xml create mode 120000 setup/rma_readonly/odoo/addons/rma_readonly create mode 100644 setup/rma_readonly/setup.py diff --git a/rma_readonly/README.rst b/rma_readonly/README.rst new file mode 100644 index 000000000..7f51a94a0 --- /dev/null +++ b/rma_readonly/README.rst @@ -0,0 +1,31 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License LGPL-3 + +============ +RMA Readonly +============ + +This module defines a RMA readonly group for users that just need access +without actual changes in RMAs + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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. + +Credits +======= + +Contributors +------------ + +* Aaron Henriquez + + +Maintainer +---------- + +This module is maintained by ForgeFlow diff --git a/rma_readonly/__init__.py b/rma_readonly/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/rma_readonly/__manifest__.py b/rma_readonly/__manifest__.py new file mode 100644 index 000000000..82fb1948f --- /dev/null +++ b/rma_readonly/__manifest__.py @@ -0,0 +1,16 @@ +{ + "name": "RMA Readonly", + "version": "15.0.1.0.0", + "license": "LGPL-3", + "category": "RMA", + "summary": "RMA readonly access", + "author": "ForgeFlow", + "website": "https://github.com/ForgeFlow/stock-rma", + "depends": ["rma"], + "data": [ + "security/rma.xml", + "security/ir.model.access.csv", + "views/rma_menus.xml", + ], + "installable": True, +} diff --git a/rma_readonly/security/ir.model.access.csv b/rma_readonly/security/ir.model.access.csv new file mode 100644 index 000000000..0c699f857 --- /dev/null +++ b/rma_readonly/security/ir.model.access.csv @@ -0,0 +1,6 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_rma_user_customer,rma.order.customer.user,rma.model_rma_order,rma_readonly.group_rma_readonly,1,0,0,0 +access_rma_line_customer_user,rma.order.line.customer.user,rma.model_rma_order_line,rma_readonly.group_rma_readonly,1,0,0,0 +access_rma_operation_customer_user,access_rma_operation,rma.model_rma_operation,rma_readonly.group_rma_readonly,1,0,0,0 +access_rma_operation_supplier_user,access_rma_operation,rma.model_rma_operation,rma_readonly.group_rma_readonly,1,0,0,0 +access_rma_order_line_user,access_rma_order_line,rma.model_rma_order_line,rma_readonly.group_rma_readonly,1,0,0,0 diff --git a/rma_readonly/security/rma.xml b/rma_readonly/security/rma.xml new file mode 100644 index 000000000..8067ee111 --- /dev/null +++ b/rma_readonly/security/rma.xml @@ -0,0 +1,10 @@ + + + + + RMA Readonly + + + + + diff --git a/rma_readonly/views/rma_menus.xml b/rma_readonly/views/rma_menus.xml new file mode 100644 index 000000000..c82f52f1e --- /dev/null +++ b/rma_readonly/views/rma_menus.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + diff --git a/setup/rma_readonly/odoo/addons/rma_readonly b/setup/rma_readonly/odoo/addons/rma_readonly new file mode 120000 index 000000000..509a48291 --- /dev/null +++ b/setup/rma_readonly/odoo/addons/rma_readonly @@ -0,0 +1 @@ +../../../../rma_readonly \ No newline at end of file diff --git a/setup/rma_readonly/setup.py b/setup/rma_readonly/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/rma_readonly/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From cc0e61ff8785085c0c379c3e0ed580a645cfa838 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Wed, 25 Oct 2023 17:18:25 +0200 Subject: [PATCH 2/2] [ADD] rma_account_readonly in v15 --- rma_account_readonly/README.rst | 30 ++++++++++++++ rma_account_readonly/__init__.py | 0 rma_account_readonly/__manifest__.py | 15 +++++++ rma_account_readonly/views/rma_menus.xml | 41 +++++++++++++++++++ .../odoo/addons/rma_account_readonly | 1 + setup/rma_account_readonly/setup.py | 6 +++ 6 files changed, 93 insertions(+) create mode 100644 rma_account_readonly/README.rst create mode 100644 rma_account_readonly/__init__.py create mode 100644 rma_account_readonly/__manifest__.py create mode 100644 rma_account_readonly/views/rma_menus.xml create mode 120000 setup/rma_account_readonly/odoo/addons/rma_account_readonly create mode 100644 setup/rma_account_readonly/setup.py diff --git a/rma_account_readonly/README.rst b/rma_account_readonly/README.rst new file mode 100644 index 000000000..0a834fb16 --- /dev/null +++ b/rma_account_readonly/README.rst @@ -0,0 +1,30 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License LGPL-3 + +==================== +RMA Account Readonly +==================== + +This module adds the RMA readonly group to the RMA account menus + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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. + +Credits +======= + +Contributors +------------ + +* Aaron Henriquez + + +Maintainer +---------- + +This module is maintained by ForgeFlow diff --git a/rma_account_readonly/__init__.py b/rma_account_readonly/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/rma_account_readonly/__manifest__.py b/rma_account_readonly/__manifest__.py new file mode 100644 index 000000000..b3ee86169 --- /dev/null +++ b/rma_account_readonly/__manifest__.py @@ -0,0 +1,15 @@ +{ + "name": "RMA Account Readonly", + "version": "15.0.1.0.0", + "license": "LGPL-3", + "category": "RMA", + "summary": "RMA account readonly access", + "author": "ForgeFlow", + "website": "https://github.com/ForgeFlow/stock-rma", + "depends": ["rma_account", "rma_readonly"], + "data": [ + "views/rma_menus.xml", + ], + "installable": True, + "auto_install": True, +} diff --git a/rma_account_readonly/views/rma_menus.xml b/rma_account_readonly/views/rma_menus.xml new file mode 100644 index 000000000..4287a7b95 --- /dev/null +++ b/rma_account_readonly/views/rma_menus.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + diff --git a/setup/rma_account_readonly/odoo/addons/rma_account_readonly b/setup/rma_account_readonly/odoo/addons/rma_account_readonly new file mode 120000 index 000000000..6a6ae28d3 --- /dev/null +++ b/setup/rma_account_readonly/odoo/addons/rma_account_readonly @@ -0,0 +1 @@ +../../../../rma_account_readonly \ No newline at end of file diff --git a/setup/rma_account_readonly/setup.py b/setup/rma_account_readonly/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/rma_account_readonly/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)