1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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" invisible="1"/>
- <field name="tracking" invisible="1"/>
- <field name="company_id" invisible="1"/>
- <field name="product_id" attrs="{'readonly': [('id', '!=', False)]}" invisible="context.get('single_product', False)" readonly="context.get('single_product', False)" force_save="1" options="{'no_create': True}"/>
- <field name="location_id" attrs="{'readonly': [('id', '!=', False)]}" invisible="context.get('hide_location', False)" options="{'no_create': True}"/>
- <field name="lot_id" groups="stock.group_production_lot" attrs="{
- 'readonly': ['|', ('id', '!=', False), ('tracking', 'not in', ['serial', 'lot'])],
- 'required': [('tracking', '!=', 'none')]
- }" invisible="context.get('hide_lot', False)" context="{'default_product_id': product_id, 'default_company_id': company_id}"/>
- <field name="package_id" groups="stock.group_tracking_lot" attrs="{'readonly': [('id', '!=', False)]}"/>
- <field name="owner_id" groups="stock.group_tracking_owner" attrs="{'readonly': [('id', '!=', False)]}" 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="z"/>
- </footer>
- </form>
- </field>
- </record>
- </odoo>
|