purchase_order_button_view.xml 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Purchase Order Tree -->
  5. <record id="purchase_order_button_tree" model="ir.ui.view">
  6. <field name="name">pos_buttons.purchase.order.button.tree</field>
  7. <field name="model">purchase.order</field>
  8. <field name="inherit_id" ref="purchase.purchase_order_tree"/>
  9. <field name="arch" type="xml">
  10. <xpath expr='//tree[@string="Purchase Order"]' position='attributes'>
  11. <attribute name="create">false</attribute>
  12. </xpath>
  13. </field>
  14. </record>
  15. <!-- Purchase Order Form -->
  16. <record id="purchase_order_button_form" model="ir.ui.view">
  17. <field name="name">pos_buttons.purchase.order.button.form</field>
  18. <field name="model">purchase.order</field>
  19. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  20. <field name="arch" type="xml">
  21. <xpath expr='//form[@string="Purchase Order"]' position='attributes'>
  22. <attribute name="create">false</attribute>
  23. </xpath>
  24. <xpath expr='//form[@string="Purchase Order"]' position='attributes'>
  25. <attribute name="edit">false</attribute>
  26. </xpath>
  27. </field>
  28. </record>
  29. </data>
  30. </openerp>