<?xml version="1.0"?>
<!--
  Copyright 2016-19 Eficent Business and IT Consulting Services S.L.
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>

    <record id="res_config_settings_view_form_auto_post_inventory" model="ir.ui.view">
        <field name="name">mrp.production.auto.post.inventory.settings.form</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="mrp.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <div id="work_order" position="after">
                <div class="col-md-6 col-xs-12 o_setting_box" id="mrp_production_auto_post_inventory" title="Sets to automatic the post-inventory step in a manufacturing order.">
                    <div class="o_setting_left_pane">
                        <field name="mrp_production_auto_post_inventory"/>
                    </div>
                    <div class="o_setting_right_pane">
                        <label for="mrp_production_auto_post_inventory"/>
                        <div class="text-muted">
                            Sets to automatic the post-inventory step in a manufacturing order.
                            The inventory will be automatically posted after some quantity has been produced.
                        </div>
                        <div class="content-group" attrs="{'invisible': [('mrp_production_auto_post_inventory','=',False)]}">
                            <div id="mrp_production_auto_post_inventory_cron" class="mt16">
                                <field name="mrp_production_auto_post_inventory_cron" class="oe_inline"/>
                                <label string="Use scheduled job to post-inventory" class="o_light_label" for="mrp_production_auto_post_inventory_cron"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </field>
    </record>

</odoo>
