36 lines
1.6 KiB
XML
36 lines
1.6 KiB
XML
|
<odoo>
|
||
|
<record id="mrp_production_form_view_inherited" model="ir.ui.view">
|
||
|
<field name="name">mrp.production.view.inherited</field>
|
||
|
<field name="model">mrp.production</field>
|
||
|
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//field[@name='product_id']" position="before">
|
||
|
<field name="show_valuation" invisible="1" groups="stock.group_stock_manager"/>
|
||
|
</xpath>
|
||
|
<xpath expr="//div[@name='button_box']" position="inside">
|
||
|
<t groups="stock.group_stock_manager">
|
||
|
<button type="object"
|
||
|
name="action_view_stock_valuation_layers"
|
||
|
class="oe_stat_button" icon="fa-dollar" groups="base.group_no_one"
|
||
|
invisible="not show_valuation" >
|
||
|
<div class="o_stat_info">
|
||
|
<span class="o_stat_text">Valuation</span>
|
||
|
</div>
|
||
|
</button>
|
||
|
</t>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record id="view_production_graph_inherit_mrp_account" model="ir.ui.view">
|
||
|
<field name="name">mrp.production.graph.inherited.mrp.account</field>
|
||
|
<field name="model">mrp.production</field>
|
||
|
<field name="inherit_id" ref="mrp.view_production_graph"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//graph" position="inside">
|
||
|
<field name="extra_cost" invisible="1"/>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</odoo>
|