50 lines
3.6 KiB
XML
50 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="stock_inventory_conflict_form_view" model="ir.ui.view">
|
|
<field name="name">stock.inventory.conflict.form.view</field>
|
|
<field name="model">stock.inventory.conflict</field>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<div>
|
|
<strong>Due to some stock moves done between your initial update of the quantity and now, the difference of quantity is not consistent anymore.</strong>
|
|
</div>
|
|
<div>
|
|
You can either :
|
|
<ul>
|
|
<li>Keep the <strong>Counted Quantity</strong> (the Difference will be updated)</li>
|
|
<li>Keep the <strong>Difference</strong> (the Counted Quantity will be updated to reflect the same difference as when you counted)</li>
|
|
<li>Discard and manually resolve the conflict</li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<br/>
|
|
<field name="quant_ids" invisible="1"/>
|
|
<field name="quant_to_fix_ids" readonly="1" style="margin-top:10px;">
|
|
<tree editable="bottom" create="0" delete="0">
|
|
<field name="id" column_invisible="True"/>
|
|
<field name="tracking" column_invisible="True"/>
|
|
<field name="company_id" column_invisible="True"/>
|
|
<field name="product_id" readonly="context.get('single_product', False) or id" column_invisible="context.get('single_product', False)" force_save="1" options="{'no_create': True}"/>
|
|
<field name="location_id" column_invisible="context.get('hide_location', False)" readonly="id" options="{'no_create': True}"/>
|
|
<field name="lot_id" groups="stock.group_production_lot" column_invisible="context.get('hide_lot', False)" readonly="id or tracking not in ['serial', 'lot']" required="tracking != 'none'" context="{'default_product_id': product_id, 'default_company_id': company_id}"/>
|
|
<field name="package_id" groups="stock.group_tracking_lot" readonly="id"/>
|
|
<field name="owner_id" groups="stock.group_tracking_owner" readonly="id" options="{'no_create': True}"/>
|
|
<field name="quantity" string="Quantity"/>
|
|
<field name="inventory_quantity" string="Counted Quantity" decoration-muted="inventory_quantity == 0" readonly="0"/>
|
|
<field name="inventory_diff_quantity" string="Difference" decoration-muted="inventory_quantity == 0" decoration-danger="inventory_diff_quantity < 0" decoration-success="inventory_diff_quantity > 0" decoration-bf="inventory_diff_quantity != 0"/>
|
|
<field name="product_uom_id" groups="uom.group_uom"/>
|
|
<field name='company_id' groups="base.group_multi_company" optional="show"/>
|
|
</tree>
|
|
</field>
|
|
</div>
|
|
<footer>
|
|
<button name="action_keep_counted_quantity" string="Keep Counted Quantity" type="object" class="btn-primary" data-hotkey="q"/>
|
|
<button name="action_keep_difference" string="Keep Difference" type="object" class="btn-primary" data-hotkey="w"/>
|
|
<button name="cancel_button" string="Discard" class="btn-secondary" special="cancel" data-hotkey="x"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|