Repository navigation
[19.0][ADD] stock_readonly: readonly access for Inventory application #2500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| ============== | ||
| Stock Readonly | ||
| ============== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:0000000000000000000000000000000000000000000000000000000000000000 | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |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-LGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
| :alt: License: LGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/stock-logistics-workflow/tree/19.0/stock_readonly | ||
| :alt: OCA/stock-logistics-workflow | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/stock-logistics-workflow-19-0/stock-logistics-workflow-19-0-stock_readonly | ||
| :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-workflow&target_branch=19.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This module provides a read-only group selectable in the *Inventory* | ||
| privilege of the user form, for the stock documents introduced by the | ||
| ``stock`` standard module. | ||
|
|
||
| Users holding the group can browse the stock documents (pickings, moves, | ||
| lots and their details) from the Inventory menus, without any create, | ||
| write or unlink right. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| To grant read-only access to the stock documents, select *Readonly* | ||
| under the *Inventory* privilege in the user form (Settings / Users). | ||
|
|
||
| Holding the *Readonly* option grants read-only access to the stock | ||
| documents on the user, with no create, write or unlink right. | ||
|
|
||
| Users holding the group get: | ||
|
|
||
| - read access to transfers, moves, lots, scraps, reordering rules, | ||
| package types and the traceability report; | ||
| - the *Operations* menus of the Inventory application: *Transfers* | ||
| (*Receipts* and *Deliveries*) and *Adjustments* (*Physical Inventory* | ||
| and *Scrap*). | ||
|
|
||
| Notes: | ||
|
|
||
| - The *Reporting* and *Configuration* menus remain reserved for | ||
| Inventory administrators, and feature submenus still depend on their | ||
| dedicated groups (e.g. *Internal* transfers require the *Manage | ||
| Multiple Stock Locations* option, and *Lots/Serial Numbers* the | ||
| corresponding option). | ||
| - Action buttons on the documents (e.g. validating a picking) are still | ||
| displayed but raise an access error for users holding only this group. | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/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 <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_readonly%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ------- | ||
|
|
||
| * Akretion | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Sébastien Alix <sebastien.alix@akretion.com> | ||
|
|
||
| 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-sebalix| image:: https://github.com/sebalix.png?size=40px | ||
| :target: https://github.com/sebalix | ||
| :alt: sebalix | ||
|
|
||
| Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
|
||
| |maintainer-sebalix| | ||
|
|
||
| This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/19.0/stock_readonly>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Copyright 2026 Akretion (https://www.akretion.com). | ||
| # @author Sébastien Alix <sebastien.alix@akretion.com> | ||
| # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl) | ||
|
|
||
| { | ||
| "name": "Stock Readonly", | ||
| "summary": "Read-only access to Inventory documents", | ||
| "version": "19.0.1.0.0", | ||
| "category": "Supply Chain/Inventory", | ||
| "website": "https://github.com/OCA/stock-logistics-workflow", | ||
| "author": "Akretion, Odoo Community Association (OCA)", | ||
| "maintainers": ["sebalix"], | ||
| "license": "LGPL-3", | ||
| "depends": [ | ||
| "stock", | ||
| ], | ||
| "data": [ | ||
| "security/res_groups.xml", | ||
| "security/ir.model.access.csv", | ||
| "views/stock_menus.xml", | ||
| ], | ||
| "installable": True, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [build-system] | ||
| requires = ["whool"] | ||
| build-backend = "whool.buildapi" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - Sébastien Alix \<<sebastien.alix@akretion.com>\> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| This module provides a read-only group selectable in the *Inventory* | ||
| privilege of the user form, for the stock documents introduced by the | ||
| `stock` standard module. | ||
|
|
||
| Users holding the group can browse the stock documents (pickings, moves, | ||
| lots and their details) from the Inventory menus, without any create, | ||
| write or unlink right. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| To grant read-only access to the stock documents, select *Readonly* | ||
| under the *Inventory* privilege in the user form (Settings / Users). | ||
|
|
||
| Holding the *Readonly* option grants read-only access to the stock | ||
| documents on the user, with no create, write or unlink right. | ||
|
|
||
| Users holding the group get: | ||
|
|
||
| * read access to transfers, moves, lots, scraps, reordering rules, | ||
| package types and the traceability report; | ||
| * the *Operations* menus of the Inventory application: *Transfers* | ||
| (*Receipts* and *Deliveries*) and *Adjustments* (*Physical Inventory* | ||
| and *Scrap*). | ||
|
|
||
| Notes: | ||
|
|
||
| * The *Reporting* and *Configuration* menus remain reserved for | ||
| Inventory administrators, and feature submenus still depend on their | ||
| dedicated groups (e.g. *Internal* transfers require the *Manage | ||
| Multiple Stock Locations* option, and *Lots/Serial Numbers* the | ||
| corresponding option). | ||
| * Action buttons on the documents (e.g. validating a picking) are still | ||
| displayed but raise an access error for users holding only this group. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
| access_stock_picking_readonly,stock.picking readonly,stock.model_stock_picking,group_stock_readonly,1,0,0,0 | ||
| access_stock_move_readonly,stock.move readonly,stock.model_stock_move,group_stock_readonly,1,0,0,0 | ||
| access_stock_lot_readonly,stock.lot readonly,stock.model_stock_lot,group_stock_readonly,1,0,0,0 | ||
| access_stock_scrap_readonly,stock.scrap readonly,stock.model_stock_scrap,group_stock_readonly,1,0,0,0 | ||
| access_stock_scrap_reason_tag_readonly,stock.scrap.reason.tag readonly,stock.model_stock_scrap_reason_tag,group_stock_readonly,1,0,0,0 | ||
| access_stock_warehouse_orderpoint_readonly,stock.warehouse.orderpoint readonly,stock.model_stock_warehouse_orderpoint,group_stock_readonly,1,0,0,0 | ||
| access_stock_package_type_readonly,stock.package.type readonly,stock.model_stock_package_type,group_stock_readonly,1,0,0,0 | ||
| access_stock_package_history_readonly,stock.package.history readonly,stock.model_stock_package_history,group_stock_readonly,1,0,0,0 | ||
| access_stock_traceability_report_readonly,stock.traceability.report readonly,stock.model_stock_traceability_report,group_stock_readonly,1,1,1,0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <odoo> | ||
| <record id="group_stock_readonly" model="res.groups"> | ||
| <field name="name">Readonly</field> | ||
| <field name="sequence">5</field> | ||
| <field name="privilege_id" ref="stock.res_groups_privilege_inventory" /> | ||
| <field name="implied_ids" eval="[Command.link(ref('base.group_user'))]" /> | ||
| <field | ||
| name="implied_by_ids" | ||
| eval="[Command.link(ref('stock.group_stock_user'))]" | ||
| /> | ||
| <field name="comment">the user has a read-only access to stock | ||
| documents (pickings, moves, lots and their details).</field> | ||
| </record> | ||
| </odoo> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.