sale_order_button_view.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Sale Order Tree -->
  5. <record id="sale_order_button_tree" model="ir.ui.view">
  6. <field name="name">pos_buttons.sale.order.button.tree</field>
  7. <field name="model">sale.order</field>
  8. <field name="inherit_id" ref="sale.view_order_tree"/>
  9. <field name="arch" type="xml">
  10. <xpath expr='//tree[@string="Sales Orders"]' position='attributes'>
  11. <attribute name="create">false</attribute>
  12. </xpath>
  13. </field>
  14. </record>
  15. <record id="sale_order_button_quotation_tree" model="ir.ui.view">
  16. <field name="name">pos_buttons.sale.order.button.quotation.tree</field>
  17. <field name="model">sale.order</field>
  18. <field name="inherit_id" ref="sale.view_quotation_tree"/>
  19. <field name="arch" type="xml">
  20. <xpath expr='//tree[@string="Quotation"]' position='attributes'>
  21. <attribute name="create">false</attribute>
  22. </xpath>
  23. </field>
  24. </record>
  25. <!-- Sale Order Form -->
  26. <record id="sale_order_button_form" model="ir.ui.view">
  27. <field name="name">pos_buttons.sale.order.button.form</field>
  28. <field name="model">sale.order</field>
  29. <field name="inherit_id" ref="sale.view_order_form"/>
  30. <field name="arch" type="xml">
  31. <xpath expr='//form[@string="Sales Order"]' position='attributes'>
  32. <attribute name="create">false</attribute>
  33. </xpath>
  34. <xpath expr='//form[@string="Sales Order"]' position='attributes'>
  35. <attribute name="edit">false</attribute>
  36. </xpath>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>