Files
stock-logistics-warehouse/stock_inventory_discrepancy/views/stock_quant_view.xml
Ernesto Tejeda 60cbc061df [MIG] stock_inventory_discrepancy: Migration to 15.0
[UPD] Update stock_inventory_discrepancy.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-15.0/stock-logistics-warehouse-15.0-stock_inventory_discrepancy
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_inventory_discrepancy/
2023-09-18 06:36:41 -03:00

40 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2020 ForgeFlow S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_stock_quant_tree_inventory_editable" model="ir.ui.view">
<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="stock.action_stock_inventory_adjustement_name"
position="attributes"
>
<attribute
name="groups"
>stock_inventory_discrepancy.group_stock_inventory_validation</attribute>
</button>
<button name="action_apply_inventory" position="attributes">
<attribute
name="groups"
>stock_inventory_discrepancy.group_stock_inventory_validation</attribute>
</button>
<field name="inventory_diff_quantity" position="after">
<field
name="discrepancy_percent"
attrs="{'invisible': ['|', ('inventory_quantity_set', '=', False), ('quantity', '=', False)]}"
decoration-bf="inventory_quantity_set and has_over_discrepancy"
optional="show"
/>
<field name="discrepancy_threshold" optional="show" />
<field name="has_over_discrepancy" invisible="1" />
</field>
<xpath expr="//tree" position="attributes">
<attribute
name="decoration-danger"
>inventory_quantity_set and (inventory_quantity &lt; 0 or has_over_discrepancy)</attribute>
</xpath>
</field>
</record>
</odoo>