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/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_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, +) 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, +)