From e5632abb9710db5a7ea41ed1fa127faa89fa3f55 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 1 Apr 2025 09:40:34 +0200 Subject: [PATCH] Add module stock_valuation_xlsx_viewer --- stock_valuation_xlsx_viewer/__init__.py | 0 stock_valuation_xlsx_viewer/__manifest__.py | 28 +++++++++++++++++++ .../security/ir.model.access.csv | 4 +++ .../views/stock_menu.xml | 16 +++++++++++ 4 files changed, 48 insertions(+) create mode 100644 stock_valuation_xlsx_viewer/__init__.py create mode 100644 stock_valuation_xlsx_viewer/__manifest__.py create mode 100644 stock_valuation_xlsx_viewer/security/ir.model.access.csv create mode 100644 stock_valuation_xlsx_viewer/views/stock_menu.xml diff --git a/stock_valuation_xlsx_viewer/__init__.py b/stock_valuation_xlsx_viewer/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/stock_valuation_xlsx_viewer/__manifest__.py b/stock_valuation_xlsx_viewer/__manifest__.py new file mode 100644 index 0000000..7525d9e --- /dev/null +++ b/stock_valuation_xlsx_viewer/__manifest__.py @@ -0,0 +1,28 @@ +# Copyright 2025 Akretion France (https://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +{ + 'name': 'Stock Valuation XLSX Viewer', + 'version': '14.0.1.0.0', + 'category': 'Tools', + 'license': 'AGPL-3', + 'summary': 'Glue module between stock_viewer and stock_valuation_xlsx', + 'description': """ +Stock Valuation XLSX Viewer +=========================== + +Allows to use the module stock_valuation_xlsx when the user is part of the Stock/Viewer group. + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': "Akretion", + 'website': 'https://github.com/akretion/odoo-usability', + 'depends': ['stock_viewer', 'stock_valuation_xlsx'], + 'data': [ + 'security/ir.model.access.csv', + 'views/stock_menu.xml', + ], + 'installable': True, +} diff --git a/stock_valuation_xlsx_viewer/security/ir.model.access.csv b/stock_valuation_xlsx_viewer/security/ir.model.access.csv new file mode 100644 index 0000000..114a91a --- /dev/null +++ b/stock_valuation_xlsx_viewer/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_stock_expiry_depreciation_rule_read,Read access on stock.expiry.depreciation.rule to stock user,stock_valuation_xlsx.model_stock_expiry_depreciation_rule,stock_viewer.group_stock_viewer,1,0,0,0 +access_stock_valuation_xlsx,stock.valuation.xlsx wizard,stock_valuation_xlsx.model_stock_valuation_xlsx,stock_viewer.group_stock_viewer,1,1,1,0 +access_stock_variation_xlsx,stock.variation.xlsx wizard,stock_valuation_xlsx.model_stock_variation_xlsx,stock_viewer.group_stock_viewer,1,1,1,0 diff --git a/stock_valuation_xlsx_viewer/views/stock_menu.xml b/stock_valuation_xlsx_viewer/views/stock_menu.xml new file mode 100644 index 0000000..5e8c87c --- /dev/null +++ b/stock_valuation_xlsx_viewer/views/stock_menu.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + +