mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
114 lines
6.9 KiB
XML
114 lines
6.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="mrp_bom_tree_view" model="ir.ui.view">
|
|
<field name="name">mrp.bom.tree.view</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="MRP BoMs">
|
|
<field name="name"/>
|
|
<field name="active" />
|
|
<field name="sequence" />
|
|
<field name="state" />
|
|
<field name="historical_date"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="mrp_bom_form_view_inh_version" model="ir.ui.view">
|
|
<field name="name">mrp.bom.form.view.inh.version</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form/group" position="before">
|
|
<header>
|
|
<button name="button_active" type="object" string="In active" attrs="{'invisible':[('state','!=',False)]}" class="oe_highlight" />
|
|
<button name="button_active" type="object" string="In active" attrs="{'invisible':[('state','!=','draft')]}" class="oe_highlight" />
|
|
<button name="button_historical" type="object" string="Historical" attrs="{'invisible':[('state','!=','active')]}" class="oe_highlight" />
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,open,paid" />
|
|
</header>
|
|
</xpath>
|
|
<field name="company_id" position="after">
|
|
<group colspan="2" >
|
|
<field name="historical_date" />
|
|
</group>
|
|
</field>
|
|
<field name="product_tmpl_id" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</field>
|
|
<xpath expr="//form/group/group/field[@name='product_id']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/group/group/div/field[@name='product_qty']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/group/group/div/field[@name='product_uom']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<field name="routing_id" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '!=', 'draft')]}</attribute>
|
|
</field>
|
|
<xpath expr="//form/group/group/field[@name='name']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/group/group/field[@name='code']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//form/group/group/field[@name='type']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<field name="company_id" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</field>
|
|
<field name="bom_line_ids" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '!=', 'draft')]}</attribute>
|
|
</field>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='position']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='sequence']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='active']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='date_start']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='date_stop']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='product_rounding']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@string='Properties']/group/group/field[@name='product_efficiency']" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</xpath>
|
|
<field name="property_ids" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</field>
|
|
<field name="message_follower_ids" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</field>
|
|
<field name="message_ids" position="attributes">
|
|
<attribute name="attrs">{'readonly':[('state', '=', 'historical')]}</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
<record id="view_mrp_bom_filter_inh_version" model="ir.ui.view">
|
|
<field name="name">view.mrp.bom.filter.inh.version</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp.view_mrp_bom_filter"/>
|
|
<field name="arch" type="xml">
|
|
<field name="name" position="after">
|
|
<field name="active" />
|
|
<field name="state" />
|
|
</field>
|
|
<filter string="Product" position="before">
|
|
<filter string="Active" domain="[]" context="{'group_by':'active'}"/>
|
|
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|