mrp_view.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="mrp_bom_form_view_inhe" model="ir.ui.view">
  5. <field name="model">mrp.bom</field>
  6. <field name="inherit_id" ref="mrp.mrp_bom_form_view" />
  7. <field name="arch" type="xml">
  8. <xpath expr="//page[@string='Components']/field[@name='bom_line_ids']/tree[@string='Components']/field[@name='product_uom']" position="after">
  9. <field name="bom_prod_price"/>
  10. </xpath>
  11. <xpath expr="//form[@string='Bill of Material']/group/group/label[@for='routing_id']" position="before">
  12. <label for="bom_prod_price_total" class="oe_inline"/>
  13. <div>
  14. <field name="bom_prod_price_total"/>
  15. </div>
  16. <label for="bom_prod_price_unit" class="oe_inline"/>
  17. <div>
  18. <field name="bom_prod_price_unit"/>
  19. </div>
  20. </xpath>
  21. </field>
  22. </record>
  23. <record id="mrp.mrp_bom_tree_parent_view" model="ir.ui.view">
  24. <field name="name">mrp.bom.tree</field>
  25. <field name="model">mrp.bom</field>
  26. <field name="arch" type="xml">
  27. <tree>
  28. <field name="name"/>
  29. <field name="bom_prod_price_total"/>
  30. <field name="bom_prod_price_unit"/>
  31. </tree>
  32. </field>
  33. </record>
  34. </data>
  35. </openerp>