eiru_payments_invoices.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_eiru_payments_invoices" model="ir.ui.view">
  5. <field name="name">view.eiru.payments.invoices</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_pay_customer']" position="replace">
  10. <div class="eiru-payments-invoices" attrs="{'invisible': [('state','!=','open')]}"> </div>
  11. </xpath>
  12. </field>
  13. </record>
  14. <record id="view_eiru_payments_invoices_supplier" model="ir.ui.view">
  15. <field name="name">view.eiru.payments.invoices.supplier</field>
  16. <field name="model">account.invoice</field>
  17. <field name="inherit_id" ref="account.invoice_supplier_form"/>
  18. <field name="arch" type="xml">
  19. <xpath expr="//button[@name='invoice_pay_customer']" position="replace">
  20. <div class="eiru-payments-invoices" attrs="{'invisible': [('state','!=','open')]}"> </div>
  21. </xpath>
  22. </field>
  23. </record>
  24. <record id="view_eiru_payments_invoices_voucher_customer" model="ir.ui.view">
  25. <field name="name">view.eiru.payments.invoices.voucher.customer</field>
  26. <field name="model">account.invoice</field>
  27. <field name="inherit_id" ref="account_voucher.view_invoice_customer"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//button[@name='invoice_pay_customer']" position="replace"></xpath>
  30. </field>
  31. </record>
  32. </data>
  33. </openerp>