sale_view.xml 1.2 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_order_form_ext" model="ir.ui.view">
  5. <field name="name">view.order.form.ext</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. <data>
  10. <button name="print_quotation" states="draft" position="attributes">
  11. <attribute name="invisible">True</attribute>
  12. </button>
  13. <button name="print_quotation" states="sent,progress,manual" position="attributes">
  14. <attribute name="invisible">True</attribute>
  15. </button>
  16. <button name="action_quotation_send" states="draft" position="attributes">
  17. <attribute name="invisible">True</attribute>
  18. </button>
  19. <button name="action_quotation_send" states="sent,progress,manual" position="attributes">
  20. <attribute name="invisible">True</attribute>
  21. </button>
  22. </data>
  23. </field>
  24. </record>
  25. </data>
  26. </openerp>