<?xml version="1.0"?>
<form string="Consumption Warning">
                    <field name="mrp_production_ids" invisible="1"/>
                    <field name="consumption" invisible="1"/>
                    <field name="mrp_production_count" invisible="1"/>
                    <div class="m-2">
                        You consumed a different quantity than expected for the following products.
                        <b invisible="consumption == 'strict'">
                            Please confirm it has been done on purpose.
                        </b>
                        <b invisible="consumption != 'strict'">
                            Please review your component consumption or ask a manager to validate
                            <span invisible="mrp_production_count != 1">this manufacturing order</span>
                            <span invisible="mrp_production_count == 1">these manufacturing orders</span>.
                        </b>
                    </div>
                    <field name="mrp_consumption_warning_line_ids" nolabel="1">
                        <list create="0" delete="0" editable="top">
                            <field name="mrp_production_id" column_invisible="parent.mrp_production_count == 1" force_save="1"/>
                            <field name="consumption" column_invisible="True" force_save="1"/>
                            <field name="product_id" force_save="1"/>
                            <field name="product_uom_id" groups="uom.group_uom" force_save="1"/>
                            <field name="product_expected_qty_uom" force_save="1"/>
                            <field name="product_consumed_qty_uom" force_save="1"/>
                        </list>
                    </field>
                    <footer>
                        <button name="action_confirm" string="Force" data-hotkey="q" groups="mrp.group_mrp_manager" invisible="consumption != 'strict'" colspan="1" type="object" class="btn-primary"/>
                        <button name="action_confirm" string="Confirm" invisible="consumption == 'strict'" data-hotkey="q" colspan="1" type="object" class="btn-primary"/>
                        <button name="action_set_qty" string="Set Quantities &amp; Validate" colspan="1" type="object" class="btn-secondary" invisible="'is_subcontracting_portal' in context"/>
                        <button name="action_cancel" string="Discard" data-hotkey="x" colspan="1" type="object" class="btn-secondary"/>
                    </footer>
                </form>
            