From d7b33f18f0b7af723d14bb4d31099d2369b9214e Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Fri, 1 Aug 2014 15:00:18 +0200 Subject: [PATCH] [IMP] generic wizard to import bank statements + import of OFX and QIF files (+adapted l10n_be_coda to use it) --- addons/account/res_config.py | 6 + addons/account/res_config_view.xml | 11 ++ .../account_bank_statement_import/__init__.py | 5 + .../__openerp__.py | 20 +++ .../account_bank_statement_import.py | 96 ++++++++++++++ .../account_bank_statement_import_view.xml | 46 +++++++ .../demo/fiscalyear_period.xml | 119 ++++++++++++++++++ .../demo/partner_bank.xml | 38 ++++++ .../__init__.py | 5 + .../__openerp__.py | 25 ++++ .../account_bank_statement_import_ofx.py | 74 +++++++++++ .../test_ofx_file/test_ofx.ofx | 100 +++++++++++++++ .../tests/__init__.py | 5 + .../tests/test_import_bank_statement.py | 30 +++++ .../__init__.py | 5 + .../__openerp__.py | 25 ++++ .../account_bank_statement_import_qif.py | 75 +++++++++++ .../test_qif_file/test_qif.qif | 21 ++++ .../tests/__init__.py | 5 + .../tests/test_import_bank_statement.py | 27 ++++ addons/l10n_be_coda/__openerp__.py | 3 +- addons/l10n_be_coda/l10n_be_coda_view.xml | 1 - addons/l10n_be_coda/l10n_be_coda_wizard.xml | 34 ----- ...=> Ontvangen_CODA.2013-01-11-18.59.15.txt} | 0 addons/l10n_be_coda/tests/__init__.py | 5 + .../tests/test_import_bank_statement.py | 39 ++++++ .../wizard/account_coda_import.py | 80 +++--------- 27 files changed, 802 insertions(+), 98 deletions(-) create mode 100644 addons/account_bank_statement_import/__init__.py create mode 100644 addons/account_bank_statement_import/__openerp__.py create mode 100644 addons/account_bank_statement_import/account_bank_statement_import.py create mode 100644 addons/account_bank_statement_import/account_bank_statement_import_view.xml create mode 100644 addons/account_bank_statement_import/demo/fiscalyear_period.xml create mode 100644 addons/account_bank_statement_import/demo/partner_bank.xml create mode 100644 addons/account_bank_statement_import_ofx/__init__.py create mode 100644 addons/account_bank_statement_import_ofx/__openerp__.py create mode 100644 addons/account_bank_statement_import_ofx/account_bank_statement_import_ofx.py create mode 100644 addons/account_bank_statement_import_ofx/test_ofx_file/test_ofx.ofx create mode 100644 addons/account_bank_statement_import_ofx/tests/__init__.py create mode 100644 addons/account_bank_statement_import_ofx/tests/test_import_bank_statement.py create mode 100644 addons/account_bank_statement_import_qif/__init__.py create mode 100644 addons/account_bank_statement_import_qif/__openerp__.py create mode 100644 addons/account_bank_statement_import_qif/account_bank_statement_import_qif.py create mode 100644 addons/account_bank_statement_import_qif/test_qif_file/test_qif.qif create mode 100644 addons/account_bank_statement_import_qif/tests/__init__.py create mode 100644 addons/account_bank_statement_import_qif/tests/test_import_bank_statement.py delete mode 100644 addons/l10n_be_coda/l10n_be_coda_wizard.xml rename addons/l10n_be_coda/test_coda_file/{Ontvangen_CODA.2011-01-11-18.59.15.txt => Ontvangen_CODA.2013-01-11-18.59.15.txt} (100%) create mode 100644 addons/l10n_be_coda/tests/__init__.py create mode 100644 addons/l10n_be_coda/tests/test_import_bank_statement.py diff --git a/addons/account/res_config.py b/addons/account/res_config.py index 5fd111a8fe0..f729f8070aa 100644 --- a/addons/account/res_config.py +++ b/addons/account/res_config.py @@ -108,6 +108,12 @@ class account_config_settings(osv.osv_memory): 'module_product_email_template': fields.boolean('Send products tools and information at the invoice confirmation', help='With this module, link your products to a template to send complete information and tools to your customer.\n' 'For instance when invoicing a training, the training agenda and materials will automatically be send to your customers.'), + 'module_account_bank_statement_import_ofx': fields.boolean('Import of Bank Statements in .OFX Format', + help='Get your bank statements from you bank and import them in Odoo in .OFX format.\n' + '-that installs the module account_bank_statement_import.'), + 'module_account_bank_statement_import_qif': fields.boolean('Import of Bank Statements in .QIF Format.', + help='Get your bank statements from you bank and import them in Odoo in .QIF format.\n' + '-that installs the module account_bank_statement_import_qif.'), 'group_proforma_invoices': fields.boolean('Allow pro-forma invoices', implied_group='account.group_proforma_invoices', help="Allows you to put invoices in pro-forma state."), diff --git a/addons/account/res_config_view.xml b/addons/account/res_config_view.xml index b33264fa452..5e43fd15d0c 100644 --- a/addons/account/res_config_view.xml +++ b/addons/account/res_config_view.xml @@ -246,6 +246,17 @@ +