account_invoice_view.xml 732 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="account_invoice_button">
  5. <field name="name">account.invoice.button</field>
  6. <field name="model">account.invoice</field>
  7. <field name="inherit_id" ref="account.invoice_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//button[@name='invoice_print']" position="replace">
  10. <div class="pagare_button_box" attrs="{'invisible': [('state','not in',['open','paid'])]}"></div>
  11. </xpath>
  12. <xpath expr="//button[@name='action_invoice_sent']" position="attributes">
  13. <attribute name="invisible">1</attribute>
  14. </xpath>
  15. </field>
  16. </record>
  17. </data>
  18. </openerp>