From 282c7499b90d892af3c5dc855dc3e8adf71eefbf Mon Sep 17 00:00:00 2001 From: "Dmitrijs Ledkovs (credativ)" Date: Thu, 16 Feb 2012 11:38:19 +0000 Subject: [PATCH] Fixes for v5 --- account_banking_uk_hsbc/__init__.py | 1 + .../{__openerp__.py => __terp__.py} | 0 .../data/banking_export_hsbc.xml | 18 +++------ .../payment_order_v5_fixes.py | 37 +++++++++++++++++++ 4 files changed, 44 insertions(+), 12 deletions(-) rename account_banking_uk_hsbc/{__openerp__.py => __terp__.py} (100%) create mode 100644 account_banking_uk_hsbc/payment_order_v5_fixes.py diff --git a/account_banking_uk_hsbc/__init__.py b/account_banking_uk_hsbc/__init__.py index b9c3e7a5e..4dd116675 100644 --- a/account_banking_uk_hsbc/__init__.py +++ b/account_banking_uk_hsbc/__init__.py @@ -22,4 +22,5 @@ import account_banking_uk_hsbc import wizard import hsbc_mt940 +import payment_order_v5_fixes # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/account_banking_uk_hsbc/__openerp__.py b/account_banking_uk_hsbc/__terp__.py similarity index 100% rename from account_banking_uk_hsbc/__openerp__.py rename to account_banking_uk_hsbc/__terp__.py diff --git a/account_banking_uk_hsbc/data/banking_export_hsbc.xml b/account_banking_uk_hsbc/data/banking_export_hsbc.xml index d6cc30e93..2db3483ac 100644 --- a/account_banking_uk_hsbc/data/banking_export_hsbc.xml +++ b/account_banking_uk_hsbc/data/banking_export_hsbc.xml @@ -1,29 +1,23 @@ - + ACH or EZONE - not used + UKACH - - + Faster Payment - not used + UKFP - - + Priority Payment - not used + UKPP - diff --git a/account_banking_uk_hsbc/payment_order_v5_fixes.py b/account_banking_uk_hsbc/payment_order_v5_fixes.py new file mode 100644 index 000000000..042043e21 --- /dev/null +++ b/account_banking_uk_hsbc/payment_order_v5_fixes.py @@ -0,0 +1,37 @@ +############################################################################## +# +# Copyright (C) 2009 EduSense BV (). +# Copyright (C) 2012 credativ, Ltd (). +# All Rights Reserved +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from osv import osv, fields +from datetime import date +from tools.translate import _ + +class payment_order(osv.osv): + ''' + Attach export_clieop wizard to payment order and allow traceability + ''' + _inherit = 'payment.order' + def get_wizard(self, type): + if type in ['UKACH', 'UKFP', 'UKPP']: + return self._module, 'model_banking_export_hsbc_wizard' + return super(payment_order, self).get_wizard(type) +payment_order() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: