Add module stock_valuation_xlsx_viewer

This commit is contained in:
Alexis de Lattre
2025-04-01 09:40:34 +02:00
parent 041aae3e17
commit e5632abb97
4 changed files with 48 additions and 0 deletions

View File

View File

@@ -0,0 +1,28 @@
# Copyright 2025 Akretion France (https://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# 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 <alexis.delattre@akretion.com>.
""",
'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,
}

View File

@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 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
3 access_stock_valuation_xlsx stock.valuation.xlsx wizard stock_valuation_xlsx.model_stock_valuation_xlsx stock_viewer.group_stock_viewer 1 1 1 0
4 access_stock_variation_xlsx stock.variation.xlsx wizard stock_valuation_xlsx.model_stock_variation_xlsx stock_viewer.group_stock_viewer 1 1 1 0

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 Akretion France (https://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="stock.menu_warehouse_report" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('stock_viewer.group_stock_viewer'))]"/>
</record>
</odoo>