diff --git a/purchase_operating_unit_access_all/README.rst b/purchase_operating_unit_access_all/README.rst new file mode 100644 index 0000000000..d68894f6cb --- /dev/null +++ b/purchase_operating_unit_access_all/README.rst @@ -0,0 +1,98 @@ +=============================== +Access all OUs' Purchase Orders +=============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:8d191d8a53b526c2bf4263434dd2cbe38208da32edeca63a655976a54dc3e1cb + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Foperating--unit-lightgray.png?logo=github + :target: https://github.com/OCA/operating-unit/tree/17.0/purchase_operating_unit_access_all + :alt: OCA/operating-unit +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/operating-unit-17-0/operating-unit-17-0-purchase_operating_unit_access_all + :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/operating-unit&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allow a user to have Access all OUs' purchase orders, +without having to add OUs in user setting. + +Example use case, a shared procurement team under an OU but need to work +on purchase orders of all OUs. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure a user to have access to all OUs' purchase orders (without +all OUs access): + +- Go to *Settings / Users & Companies / Users* +- For a user, select checkbox "Access all OUs' purchase orders" + +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 +------- + +* Ecosoft + +Contributors +------------ + +- Kitti U. +- Tran Thanh Trai + +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. + +.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px + :target: https://github.com/kittiu + :alt: kittiu + +Current `maintainer `__: + +|maintainer-kittiu| + +This module is part of the `OCA/operating-unit `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/purchase_operating_unit_access_all/__init__.py b/purchase_operating_unit_access_all/__init__.py new file mode 100644 index 0000000000..c71289ab17 --- /dev/null +++ b/purchase_operating_unit_access_all/__init__.py @@ -0,0 +1 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/purchase_operating_unit_access_all/__manifest__.py b/purchase_operating_unit_access_all/__manifest__.py new file mode 100644 index 0000000000..f5495d4abf --- /dev/null +++ b/purchase_operating_unit_access_all/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Access all OUs' Purchase Orders", + "version": "17.0.1.0.0", + "author": "Ecosoft,Odoo Community Association (OCA)", + "category": "Purchase Management", + "license": "AGPL-3", + "website": "https://github.com/OCA/operating-unit", + "depends": ["purchase_operating_unit"], + "data": [ + "security/purchase_security.xml", + ], + "installable": True, + "maintainers": ["kittiu"], +} diff --git a/purchase_operating_unit_access_all/i18n/purchase_operating_unit_access_all.pot b/purchase_operating_unit_access_all/i18n/purchase_operating_unit_access_all.pot new file mode 100644 index 0000000000..44a73a3508 --- /dev/null +++ b/purchase_operating_unit_access_all/i18n/purchase_operating_unit_access_all.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_operating_unit_access_all +# +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: purchase_operating_unit_access_all +#: model:res.groups,name:purchase_operating_unit_access_all.group_all_ou_purchase +msgid "Access all OUs' purchase orders" +msgstr "" diff --git a/purchase_operating_unit_access_all/pyproject.toml b/purchase_operating_unit_access_all/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/purchase_operating_unit_access_all/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/purchase_operating_unit_access_all/readme/CONFIGURE.md b/purchase_operating_unit_access_all/readme/CONFIGURE.md new file mode 100644 index 0000000000..39f05e894b --- /dev/null +++ b/purchase_operating_unit_access_all/readme/CONFIGURE.md @@ -0,0 +1,5 @@ +To configure a user to have access to all OUs' purchase orders (without +all OUs access): + +- Go to *Settings / Users & Companies / Users* +- For a user, select checkbox "Access all OUs' purchase orders" diff --git a/purchase_operating_unit_access_all/readme/CONTRIBUTORS.md b/purchase_operating_unit_access_all/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..f96a4a30de --- /dev/null +++ b/purchase_operating_unit_access_all/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- Kitti U. \<\> +- Tran Thanh Trai \<\> diff --git a/purchase_operating_unit_access_all/readme/DESCRIPTION.md b/purchase_operating_unit_access_all/readme/DESCRIPTION.md new file mode 100644 index 0000000000..82cabf7ebc --- /dev/null +++ b/purchase_operating_unit_access_all/readme/DESCRIPTION.md @@ -0,0 +1,5 @@ +This module allow a user to have Access all OUs' purchase orders, +without having to add OUs in user setting. + +Example use case, a shared procurement team under an OU but need to work +on purchase orders of all OUs. diff --git a/purchase_operating_unit_access_all/security/purchase_security.xml b/purchase_operating_unit_access_all/security/purchase_security.xml new file mode 100644 index 0000000000..807885a11c --- /dev/null +++ b/purchase_operating_unit_access_all/security/purchase_security.xml @@ -0,0 +1,18 @@ + + + + + Access all OUs' purchase orders + + + + + + + + + diff --git a/purchase_operating_unit_access_all/static/description/icon.png b/purchase_operating_unit_access_all/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/purchase_operating_unit_access_all/static/description/icon.png differ diff --git a/purchase_operating_unit_access_all/static/description/index.html b/purchase_operating_unit_access_all/static/description/index.html new file mode 100644 index 0000000000..fce64d3cb9 --- /dev/null +++ b/purchase_operating_unit_access_all/static/description/index.html @@ -0,0 +1,439 @@ + + + + + +Access all OUs' Purchase Orders + + + +
+

Access all OUs’ Purchase Orders

+ + +

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

+

This module allow a user to have Access all OUs’ purchase orders, +without having to add OUs in user setting.

+

Example use case, a shared procurement team under an OU but need to work +on purchase orders of all OUs.

+

Table of contents

+ +
+

Configuration

+

To configure a user to have access to all OUs’ purchase orders (without +all OUs access):

+
    +
  • Go to Settings / Users & Companies / Users
  • +
  • For a user, select checkbox “Access all OUs’ purchase orders”
  • +
+
+
+

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

+
    +
  • Ecosoft
  • +
+
+
+

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.

+

Current maintainer:

+

kittiu

+

This module is part of the OCA/operating-unit project on GitHub.

+

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

+
+
+
+ + diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000000..f87d681fa2 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,2 @@ +odoo-addon-purchase_operating_unit @ git+https://github.com/OCA/operating-unit.git@refs/pull/674/head#subdirectory=purchase_operating_unit +odoo-addon-account_operating_unit @ git+https://github.com/OCA/operating-unit.git@refs/pull/670/head#subdirectory=account_operating_unit