diff --git a/repair_security/README.rst b/repair_security/README.rst new file mode 100644 index 00000000..80fb1361 --- /dev/null +++ b/repair_security/README.rst @@ -0,0 +1,81 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +=============== +Repair Security +=============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:3fe02b72d8ecc5810af4047e8ca9ef267f1fac979fc3f20627e4ea7829b16065 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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%2Frepair-lightgray.png?logo=github + :target: https://github.com/OCA/repair/tree/19.0/repair_security + :alt: OCA/repair +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/repair-19-0/repair-19-0-repair_security + :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/repair&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds security groups fro the Repair App to make it more +configurable and independent of Stock. + +**Table of contents** + +.. contents:: + :local: + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ForgeFlow S.L. + +Contributors +------------ + +- David Jiménez + +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/repair `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/repair_security/__init__.py b/repair_security/__init__.py new file mode 100644 index 00000000..00164fb9 --- /dev/null +++ b/repair_security/__init__.py @@ -0,0 +1 @@ +from .hook import post_init_hook diff --git a/repair_security/__manifest__.py b/repair_security/__manifest__.py new file mode 100644 index 00000000..68cefcaa --- /dev/null +++ b/repair_security/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2020 ForgeFlow S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Repair Security", + "summary": "Create security groups for Repair", + "version": "19.0.1.0.0", + "category": "Manufacturing", + "website": "https://github.com/OCA/repair", + "author": "ForgeFlow S.L., Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "depends": ["repair"], + "data": [ + "security/repair_security.xml", + "security/ir.model.access.csv", + "views/repair_views.xml", + ], + "post_init_hook": "post_init_hook", +} diff --git a/repair_security/hook.py b/repair_security/hook.py new file mode 100644 index 00000000..441534e3 --- /dev/null +++ b/repair_security/hook.py @@ -0,0 +1,7 @@ +def post_init_hook(env): + # Giving Repair Admin access to match the previous permissions. + env.ref("repair_security.group_repair_manager").write( + { + "user_ids": [(6, 0, env.ref("stock.group_stock_user").user_ids.ids)], + } + ) diff --git a/repair_security/i18n/repair_security.pot b/repair_security/i18n/repair_security.pot new file mode 100644 index 00000000..d06516c7 --- /dev/null +++ b/repair_security/i18n/repair_security.pot @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * repair_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \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: repair_security +#: model:res.groups,name:repair_security.group_repair_manager +msgid "Administrator" +msgstr "" + +#. module: repair_security +#: model:ir.module.category,name:repair_security.module_category_repair +msgid "Repair" +msgstr "" + +#. module: repair_security +#: model:res.groups,name:repair_security.group_repair_user +msgid "User" +msgstr "" diff --git a/repair_security/pyproject.toml b/repair_security/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/repair_security/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/repair_security/readme/CONTRIBUTORS.md b/repair_security/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..a996bb9a --- /dev/null +++ b/repair_security/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- David Jiménez \ diff --git a/repair_security/readme/DESCRIPTION.md b/repair_security/readme/DESCRIPTION.md new file mode 100644 index 00000000..f93de2cc --- /dev/null +++ b/repair_security/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds security groups fro the Repair App to make it more +configurable and independent of Stock. diff --git a/repair_security/security/ir.model.access.csv b/repair_security/security/ir.model.access.csv new file mode 100644 index 00000000..09f04664 --- /dev/null +++ b/repair_security/security/ir.model.access.csv @@ -0,0 +1,8 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_repair_user,Repair user,repair.model_repair_order,repair_security.group_repair_user,1,1,0,0 +access_repair_manager,Repair manager,repair.model_repair_order,repair_security.group_repair_manager,1,1,1,1 +access_repair_tag_user,Repair Tags user,repair.model_repair_tags,repair_security.group_repair_user,1,0,0,0 +access_repair_tag_manager,Repair Tags user,repair.model_repair_tags,repair_security.group_repair_manager,1,1,1,1 +access_account_tax_user,account.tax,account.model_account_tax,repair_security.group_repair_user,1,0,0,0 +access_account_tax_manager,account.tax,account.model_account_tax,repair_security.group_repair_manager,1,0,0,0 +access_stock_warn_insufficient_qty_repair_manager,access.stock.warn.insufficient.qty.repair,repair.model_stock_warn_insufficient_qty_repair,repair_security.group_repair_manager,1,1,1,1 diff --git a/repair_security/security/repair_security.xml b/repair_security/security/repair_security.xml new file mode 100644 index 00000000..f6e67d7a --- /dev/null +++ b/repair_security/security/repair_security.xml @@ -0,0 +1,34 @@ + + + + + + + + + Repair + 25 + + + Repair + + 7 + + + + User + + + + + Administrator + + + + + diff --git a/repair_security/static/description/icon.png b/repair_security/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/repair_security/static/description/icon.png differ diff --git a/repair_security/static/description/index.html b/repair_security/static/description/index.html new file mode 100644 index 00000000..bab9bbf6 --- /dev/null +++ b/repair_security/static/description/index.html @@ -0,0 +1,430 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Repair Security

+ +

Beta License: AGPL-3 OCA/repair Translate me on Weblate Try me on Runboat

+

This module adds security groups fro the Repair App to make it more +configurable and independent of Stock.

+

Table of contents

+ +
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow S.L.
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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/repair project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/repair_security/views/repair_views.xml b/repair_security/views/repair_views.xml new file mode 100644 index 00000000..9da0dfb9 --- /dev/null +++ b/repair_security/views/repair_views.xml @@ -0,0 +1,8 @@ + + + + +