account_invoice_button_view.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Account Invoice Tree -->
  5. <record id="account_invoice_button_tree" model="ir.ui.view">
  6. <field name="name">pos_buttons.account.invoice.button.tree</field>
  7. <field name="model">account.invoice</field>
  8. <field name="inherit_id" ref="account.invoice_tree"/>
  9. <field name="arch" type="xml">
  10. <xpath expr='//tree[@string="Invoice"]' position='attributes'>
  11. <attribute name="create">false</attribute>
  12. </xpath>
  13. </field>
  14. </record>
  15. <!-- Customer: Account Invoice Form -->
  16. <record id="account_invoice_button_form" model="ir.ui.view">
  17. <field name="name">pos_buttons.account.invoice.button.form</field>
  18. <field name="model">account.invoice</field>
  19. <field name="inherit_id" ref="account.invoice_form"/>
  20. <field name="arch" type="xml">
  21. <xpath expr='//form[@string="Invoice"]' position='attributes'>
  22. <attribute name="create">false</attribute>
  23. </xpath>
  24. <xpath expr='//form[@string="Invoice"]' position='attributes'>
  25. <attribute name="edit">false</attribute>
  26. </xpath>
  27. </field>
  28. </record>
  29. <!-- Supplier: Account Invoice Form -->
  30. <record id="account_supplier_invoice_button_form" model="ir.ui.view">
  31. <field name="name">pos_buttons.account.supplier.invoice.button.form</field>
  32. <field name="model">account.invoice</field>
  33. <field name="inherit_id" ref="account.invoice_supplier_form"/>
  34. <field name="arch" type="xml">
  35. <xpath expr='//form[@string="Supplier Invoice"]' position='attributes'>
  36. <attribute name="create">false</attribute>
  37. </xpath>
  38. <xpath expr='//form[@string="Supplier Invoice"]' position='attributes'>
  39. <attribute name="edit">false</attribute>
  40. </xpath>
  41. </field>
  42. </record>
  43. </data>
  44. </openerp>