purchase_reference_view.xml 761 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="purchase_prod_factory_ref_view">
  5. <field name="name">purchase.prod.factory.ref.view</field>
  6. <field name="model">purchase.order</field>
  7. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//tree/field[@name='product_id']" position="after">
  10. <field name="product_factory_ref"/>
  11. </xpath>
  12. <xpath expr="//tree/field[@name='name']" position="replace">
  13. <field name="name" invisible="1"/>
  14. </xpath>
  15. </field>
  16. </record>
  17. </data>
  18. </openerp>