account_move_view.xml 1.3 KB

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_move_form" model="ir.ui.view">
  5. <field name="name">account.move.form</field>
  6. <field name="model">account.move</field>
  7. <field name="inherit_id" ref="account.view_move_form"/>
  8. <field name="arch" type="xml">
  9. <button name="button_validate" position="after">
  10. <button name="action_create_receipt_voucher" attrs="{'invisible':['|', ('state', '!=', 'posted'), ('receivable_residual', '=', 0.0)]}" string="Create Receipt Voucher" type="object" class="oe_highlight" groups="account.group_account_invoice"/>
  11. <button name="action_create_payment_voucher" attrs="{'invisible':['|', ('state', '!=', 'posted'), ('payable_residual', '=', 0.0)]}" string="Create Payment Voucher" type="object" class="oe_highlight" groups="account.group_account_invoice"/>
  12. </button>
  13. <field name="amount" position="after">
  14. <field name="receivable_residual" attrs="{'invisible': [('receivable_residual', '=', 0.0)]}"/>
  15. <field name="payable_residual" attrs="{'invisible': [('payable_residual', '=', 0.0)]}"/>
  16. </field>
  17. </field>
  18. </record>
  19. </data>
  20. </openerp>