factory_ref_view.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="sale_order_factory_ref_view">
  5. <field name="name">sale.order.factory.ref.view</field>
  6. <field name="model">sale.order</field>
  7. <field name="inherit_id" ref="sale.view_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. <xpath expr="//tree/field[@name='discount']" position="replace">
  16. <field name="discount" invisible="1"/>
  17. </xpath>
  18. <field name="date_order" position="after">
  19. <field name="create_uid" readonly="1"/>
  20. </field>
  21. <field name="client_order_ref" position="replace">
  22. <field name="client_order_ref" invisible="1"/>
  23. </field>
  24. <field name="note" position="replace">
  25. <field name="note" invisible="1"/>
  26. </field>
  27. <field name="message_ids" position="replace">
  28. <field name="message_ids" invisible="1"/>
  29. </field>
  30. <field name="message_follower_ids" position="replace">
  31. <field name="message_follower_ids" invisible="1"/>
  32. </field>
  33. </field>
  34. </record>
  35. </data>
  36. </openerp>