stock_change_qty_reason/views/stock_quant_reason_view.xml
2026-01-21 09:45:01 +07:00

54 lines
2.0 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019-2023 ForgeFlow S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_preset_reason" model="ir.ui.view">
<field name="name">Preset Reason</field>
<field name="model">stock.quant.reason</field>
<field name="arch" type="xml">
<form string="Preset Reason">
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-archive"
>
<span class="o_form_label">
Active
</span>
<field name="active" />
</button>
</div>
<group>
<field name="name" />
<field name="description" />
</group>
</sheet>
</form>
</field>
</record>
<record id="action_change_qty_reasons_list" model="ir.actions.act_window">
<field name="name">Change Qty Reasons</field>
<field name="res_model">stock.quant.reason</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">list,form</field>
</record>
<menuitem
id="menu_inventory_adjustments_config"
name="Inventory Adjustment"
parent="stock.menu_stock_config_settings"
groups="stock.group_stock_manager"
sequence="5"
/>
<menuitem
id="menu_reasons"
name="Change Qty Reasons"
parent="menu_inventory_adjustments_config"
groups="stock_change_qty_reason.group_qty_reason_preset"
action="action_change_qty_reasons_list"
sequence="1"
/>
</odoo>