From 96c59a35a05fa170c133e502261a08329d9949fd Mon Sep 17 00:00:00 2001 From: Giovanni Date: Mon, 27 Apr 2026 11:53:41 +0200 Subject: [PATCH] [IMP] stock_operating_unit_access_all: Add stock views for all operating units access Co-authored-by: Copilot --- .../__manifest__.py | 1 + .../static/description/index.html | 12 +- .../views/stock_views.xml | 135 ++++++++++++++++++ 3 files changed, 143 insertions(+), 5 deletions(-) create mode 100644 stock_operating_unit_access_all/views/stock_views.xml diff --git a/stock_operating_unit_access_all/__manifest__.py b/stock_operating_unit_access_all/__manifest__.py index dc89f3c2ac..610bf27bca 100644 --- a/stock_operating_unit_access_all/__manifest__.py +++ b/stock_operating_unit_access_all/__manifest__.py @@ -11,6 +11,7 @@ "depends": ["stock_operating_unit"], "data": [ "security/stock_security.xml", + "views/stock_views.xml", ], "installable": True, "maintainers": ["kittiu"], diff --git a/stock_operating_unit_access_all/static/description/index.html b/stock_operating_unit_access_all/static/description/index.html index 426e643867..f89c07eee9 100644 --- a/stock_operating_unit_access_all/static/description/index.html +++ b/stock_operating_unit_access_all/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -420,7 +420,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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.

diff --git a/stock_operating_unit_access_all/views/stock_views.xml b/stock_operating_unit_access_all/views/stock_views.xml new file mode 100644 index 0000000000..ef74bebd0a --- /dev/null +++ b/stock_operating_unit_access_all/views/stock_views.xml @@ -0,0 +1,135 @@ + + + + stock.location.form.all.ou + stock.location + + + + + + + + + + + + stock.location.tree.all.ou + stock.location + + + + + + + + + + + + stock.location.search.all.ou + stock.location + + + + + + + + + + + + stock.warehouse.form.all.ou + stock.warehouse + + + + + + + + + + + + stock.warehouse.tree.all.ou + stock.warehouse + + + + + + + + + + + + stock.picking.form.all.ou + stock.picking + + + + + + + + + + + + stock.picking.tree.all.ou + stock.picking + + + + + + + + + +