You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.2 KiB

  1. <?xml version="1.0" ?>
  2. <openerp>
  3. <data>
  4. <record id="account_bank_statement_import_view" model="ir.ui.view">
  5. <field name="name">Import Bank Statements</field>
  6. <field name="model">account.bank.statement.import</field>
  7. <field name="priority">1</field>
  8. <field name="arch" type="xml">
  9. <form string="Import Bank Statements">
  10. <field name="data_file"/>
  11. <field name="hide_journal_field" invisible="1"/>
  12. <label for="journal_id"/>
  13. <field name="journal_id"
  14. domain="[('type', '=', 'bank')]"
  15. attrs="{'invisible': [('hide_journal_field', '=', True)]}"
  16. context="{'default_type':'bank'}"/>
  17. <br/><br/><b> How to import your bank statement :</b>
  18. <br/><label string= "1. Download your bank statements from your bank website."/>
  19. <br/><label string= "2. Make sure you have installed the right module to support the file format."/>
  20. <br/><label string= "3. Select the file and click 'Import'."/>
  21. <footer>
  22. <button name="import_file" string="_Import" type="object" class="oe_highlight"/>
  23. or
  24. <button string="Cancel" class="oe_link" special="cancel"/>
  25. </footer>
  26. </form>
  27. </field>
  28. </record>
  29. <record id="action_account_bank_statement_import" model="ir.actions.act_window">
  30. <field name="name">Import</field>
  31. <field name="type">ir.actions.act_window</field>
  32. <field name="res_model">account.bank.statement.import</field>
  33. <field name="view_type">form</field>
  34. <field name="view_mode">form</field>
  35. <field name="target">new</field>
  36. <field name="view_id" ref="account_bank_statement_import_view"/>
  37. </record>
  38. <menuitem id="menu_account_bank_statement_import" parent="account.menu_finance_bank_and_cash" action="action_account_bank_statement_import" sequence="8"/>
  39. </data>
  40. </openerp>