diff --git a/stock_inventory_hide_apply_all/README.rst b/stock_inventory_hide_apply_all/README.rst new file mode 100644 index 0000000..3f481f1 --- /dev/null +++ b/stock_inventory_hide_apply_all/README.rst @@ -0,0 +1,116 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +============================== +Stock Inventory Hide Apply All +============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:a1c73f5ed3085cb526bfa12d2dce5e838a9c036d2a2602c41e4b4660272ba1d7 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fstock--logistics--warehouse-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_inventory_hide_apply_all + :alt: OCA/stock-logistics-warehouse +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_inventory_hide_apply_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/stock-logistics-warehouse&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module hides the **Apply All** button on the inventory adjustment +list by default. It can be shown again for specific users by granting +them the *Apply All Inventory Adjustments* group. + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +On the inventory adjustment list, the **Apply All** button applies the +counted quantity of every line at once. When many lines are counted, +this makes it easy to commit stock adjustments in bulk without reviewing +each line, which can lead to unintended changes that are hard to trace +afterwards. + +Some organizations therefore want counts to be applied and reviewed line +by line, using the per-line **Apply** action only. This module hides the +bulk **Apply All** button from the view to enforce that workflow, while +still allowing it to be granted to trusted users through a dedicated +access group. + +Usage +===== + +By default the **Apply All** button is hidden for every user. + +To let a specific user use it again, add them to the *Apply All +Inventory Adjustments* group (Settings > Users & Companies > Users, then +enable the group on the user). + +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 +------- + +* Quartile + +Contributors +------------ + +- `Quartile `__: + + - Shinnosuke Morita + +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-smorita7749| image:: https://github.com/smorita7749.png?size=40px + :target: https://github.com/smorita7749 + :alt: smorita7749 + +Current `maintainer `__: + +|maintainer-smorita7749| + +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_inventory_hide_apply_all/__init__.py b/stock_inventory_hide_apply_all/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/stock_inventory_hide_apply_all/__manifest__.py b/stock_inventory_hide_apply_all/__manifest__.py new file mode 100644 index 0000000..282fb55 --- /dev/null +++ b/stock_inventory_hide_apply_all/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2026 Quartile (https://www.quartile.co) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Stock Inventory Hide Apply All", + "summary": "Hide the 'Apply All' button on the inventory adjustment list", + "version": "18.0.1.0.0", + "development_status": "Beta", + "category": "Inventory/Inventory", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "author": "Quartile, Odoo Community Association (OCA)", + "maintainers": ["smorita7749"], + "license": "AGPL-3", + "installable": True, + "depends": ["stock"], + "data": [ + "security/security.xml", + "views/stock_quant_views.xml", + ], +} diff --git a/stock_inventory_hide_apply_all/i18n/stock_inventory_hide_apply_all.pot b/stock_inventory_hide_apply_all/i18n/stock_inventory_hide_apply_all.pot new file mode 100644 index 0000000..05b2576 --- /dev/null +++ b/stock_inventory_hide_apply_all/i18n/stock_inventory_hide_apply_all.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_hide_apply_all +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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: stock_inventory_hide_apply_all +#: model:res.groups,name:stock_inventory_hide_apply_all.group_stock_apply_all +msgid "Apply All Inventory Adjustments" +msgstr "" + +#. module: stock_inventory_hide_apply_all +#: model:res.groups,comment:stock_inventory_hide_apply_all.group_stock_apply_all +msgid "" +"Users in this group can bulk-apply inventory adjustments using the \"Apply " +"All\" button on the inventory adjustment list." +msgstr "" diff --git a/stock_inventory_hide_apply_all/pyproject.toml b/stock_inventory_hide_apply_all/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/stock_inventory_hide_apply_all/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_inventory_hide_apply_all/readme/CONTEXT.md b/stock_inventory_hide_apply_all/readme/CONTEXT.md new file mode 100644 index 0000000..ea342bc --- /dev/null +++ b/stock_inventory_hide_apply_all/readme/CONTEXT.md @@ -0,0 +1,9 @@ +On the inventory adjustment list, the **Apply All** button applies the counted +quantity of every line at once. When many lines are counted, this makes it easy +to commit stock adjustments in bulk without reviewing each line, which can lead +to unintended changes that are hard to trace afterwards. + +Some organizations therefore want counts to be applied and reviewed line by +line, using the per-line **Apply** action only. This module hides the bulk +**Apply All** button from the view to enforce that workflow, while still +allowing it to be granted to trusted users through a dedicated access group. diff --git a/stock_inventory_hide_apply_all/readme/CONTRIBUTORS.md b/stock_inventory_hide_apply_all/readme/CONTRIBUTORS.md new file mode 100644 index 0000000..260160c --- /dev/null +++ b/stock_inventory_hide_apply_all/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- [Quartile](https://www.quartile.co): + - Shinnosuke Morita diff --git a/stock_inventory_hide_apply_all/readme/DESCRIPTION.md b/stock_inventory_hide_apply_all/readme/DESCRIPTION.md new file mode 100644 index 0000000..6c231bc6 --- /dev/null +++ b/stock_inventory_hide_apply_all/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module hides the **Apply All** button on the inventory adjustment list by +default. It can be shown again for specific users by granting them the *Apply +All Inventory Adjustments* group. diff --git a/stock_inventory_hide_apply_all/readme/USAGE.md b/stock_inventory_hide_apply_all/readme/USAGE.md new file mode 100644 index 0000000..9c10ad5 --- /dev/null +++ b/stock_inventory_hide_apply_all/readme/USAGE.md @@ -0,0 +1,5 @@ +By default the **Apply All** button is hidden for every user. + +To let a specific user use it again, add them to the *Apply All Inventory +Adjustments* group (Settings > Users & Companies > Users, then enable the group +on the user). diff --git a/stock_inventory_hide_apply_all/security/security.xml b/stock_inventory_hide_apply_all/security/security.xml new file mode 100644 index 0000000..8a109eb --- /dev/null +++ b/stock_inventory_hide_apply_all/security/security.xml @@ -0,0 +1,9 @@ + + + + Apply All Inventory Adjustments + Users in this group can bulk-apply inventory adjustments using the "Apply All" button on the inventory adjustment list. + + diff --git a/stock_inventory_hide_apply_all/static/description/icon.png b/stock_inventory_hide_apply_all/static/description/icon.png new file mode 100644 index 0000000..1dcc49c Binary files /dev/null and b/stock_inventory_hide_apply_all/static/description/icon.png differ diff --git a/stock_inventory_hide_apply_all/static/description/index.html b/stock_inventory_hide_apply_all/static/description/index.html new file mode 100644 index 0000000..8ca5c0a --- /dev/null +++ b/stock_inventory_hide_apply_all/static/description/index.html @@ -0,0 +1,458 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Stock Inventory Hide Apply All

+ +

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

This module hides the Apply All button on the inventory adjustment +list by default. It can be shown again for specific users by granting +them the Apply All Inventory Adjustments group.

+

Table of contents

+ +
+

Use Cases / Context

+

On the inventory adjustment list, the Apply All button applies the +counted quantity of every line at once. When many lines are counted, +this makes it easy to commit stock adjustments in bulk without reviewing +each line, which can lead to unintended changes that are hard to trace +afterwards.

+

Some organizations therefore want counts to be applied and reviewed line +by line, using the per-line Apply action only. This module hides the +bulk Apply All button from the view to enforce that workflow, while +still allowing it to be granted to trusted users through a dedicated +access group.

+
+
+

Usage

+

By default the Apply All button is hidden for every user.

+

To let a specific user use it again, add them to the Apply All +Inventory Adjustments group (Settings > Users & Companies > Users, then +enable the group on the user).

+
+
+

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

+
    +
  • Quartile
  • +
+
+
+

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:

+

smorita7749

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

+

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

+
+
+
+
+ + diff --git a/stock_inventory_hide_apply_all/views/stock_quant_views.xml b/stock_inventory_hide_apply_all/views/stock_quant_views.xml new file mode 100644 index 0000000..4d34e2b --- /dev/null +++ b/stock_inventory_hide_apply_all/views/stock_quant_views.xml @@ -0,0 +1,15 @@ + + + + stock.quant.inventory.list.editable.hide.apply.all + stock.quant + + + + stock_inventory_hide_apply_all.group_stock_apply_all + + + +