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

25 lines
1015 B
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="reason_view_stock_quant_tree_inventory_editable" model="ir.ui.view">
<field name="name">stock.quant.tree</field>
<field name="model">stock.quant</field>
<field name="inherit_id" ref="stock.view_stock_quant_tree_inventory_editable" />
<field name="arch" type="xml">
<button name="action_inventory_history" position="before">
<field
name="reason"
invisible="not inventory_quantity_set"
groups="!stock_change_qty_reason.group_qty_reason_preset"
/>
<field
name="preset_reason_id"
string="Reason"
groups="stock_change_qty_reason.group_qty_reason_preset"
/>
</button>
</field>
</record>
</odoo>