account_view.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_bank_voucher_statement_form" model="ir.ui.view">
  5. <field name="name">account.bank.vocuher.statement.form.inherit.voucher</field>
  6. <field name="model">account.bank.statement</field>
  7. <field name="inherit_id" ref="account.view_bank_statement_form"/>
  8. <field name="arch" type="xml">
  9. <div name="import_buttons">
  10. <button class="oe_inline oe_stat_button" context="{'default_journal_id': journal_id}" name="%(action_voucher_populate_statement)d" string=" Pagos" type="action" attrs="{'invisible':[('state','=','confirm')]}" widget="statinfo" icon="fa-list"/>
  11. </div>
  12. <xpath expr="//field[@name='bank_account_id']" position="before">
  13. <field name="voucher_id"/>
  14. </xpath>
  15. </field>
  16. </record>
  17. <record id="view_bank_voucher_statement_form2" model="ir.ui.view">
  18. <field name="name">account.bank.vocuher.statement.form.inherit.voucher2</field>
  19. <field name="model">account.bank.statement</field>
  20. <field name="inherit_id" ref="account.view_bank_statement_form2"/>
  21. <field name="arch" type="xml">
  22. <label for="name" position="before">
  23. <div class="oe_right oe_button_box" name="import_buttons">
  24. <button class="oe_inline oe_stat_button" name="%(action_voucher_populate_statement)d" string=" Pagos" type="action" attrs="{'invisible':[('state','!=','open')]}" context="{'default_journal_id': journal_id}" widget="statinfo" icon="fa-list"/>
  25. </div>
  26. </label>
  27. </field>
  28. </record>
  29. </data>
  30. </openerp>