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.

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