flectra/addons/mrp/views/res_config_settings_views.xml
2018-01-17 19:59:30 +05:30

79 lines
4.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.mrp</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="35"/>
<field name="inherit_id" ref="base.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block" data-string="Manufacturing" string="Manufacturing" data-key="mrp" groups="mrp.group_mrp_manager">
<h2>Operations</h2>
<div class="row mt16 o_settings_container">
<div class="col-md-6 col-xs-12 o_setting_box" id="mrp_repair">
<div class="o_setting_left_pane">
<field name="module_mrp_repair"/>
</div>
<div class="o_setting_right_pane">
<label for="module_mrp_repair"/>
<div class="text-muted">
Repair products and invoice the repair orders
</div>
</div>
</div>
</div>
<h2>Products</h2>
<div class="row mt16 o_settings_container">
<div class="col-md-6 col-xs-12 o_setting_box" id="mrp_byproduct" title="Add by-products to bills of materials. This can be used to get several finished products as well. Without this option you only do: A + B = C. With the option: A + B = C + D.">
<div class="o_setting_left_pane">
<field name="module_mrp_byproduct"/>
</div>
<div class="o_setting_right_pane">
<label for="module_mrp_byproduct"/>
<div class="text-muted">
Produce residual products (A + B -> C + D)
</div>
</div>
</div>
</div>
<h2>Planning</h2>
<div class="row mt16 o_settings_container">
<div class="col-md-6 col-xs-12 o_setting_box" id="security_lead_time">
<div class="o_setting_left_pane">
<field name="use_manufacturing_lead"/>
</div>
<div class="o_setting_right_pane">
<label string="Security Lead Time" for="use_manufacturing_lead"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="text-muted">
Schedule manufacturing orders earlier to avoid delays
</div>
<div class="content-group" attrs="{'invisible': [('use_manufacturing_lead','=',False)]}">
<div class="mt16" >
Move forward deadline start dates by
<field name="manufacturing_lead" class="oe_inline"/> days
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<record id="action_mrp_configuration" model="ir.actions.act_window">
<field name="name">Settings</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'mrp'}</field>
</record>
<menuitem id="menu_mrp_config" name="Settings" parent="menu_mrp_configuration"
sequence="0" action="action_mrp_configuration" groups="base.group_system"/>
</data>
</flectra>