From ed0d9e4adb2869f5c33c7ef0280e4f4d6fed11b2 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 22 Sep 2013 21:51:06 +0200 Subject: [PATCH 1/2] [FIX] Wizard should not have ACL [FIX] Wording SEPA XML vs. SEPA Credit Transfer XML [FIX] res.partner.bank's iban field is deprecated [FIX] Validation [FIX] local variable 'payment_line' masks class name [FIX] Error in processing debit order line with partial reconciliation --- account_banking/security/ir.model.access.csv | 1 - .../__openerp__.py | 1 + .../account_banking_sepa_view.xml | 8 ++++---- .../wizard/export_sepa.py | 9 ++++++--- account_direct_debit/model/account_payment.py | 14 +++++++------- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/account_banking/security/ir.model.access.csv b/account_banking/security/ir.model.access.csv index 498785595..8e714e589 100644 --- a/account_banking/security/ir.model.access.csv +++ b/account_banking/security/ir.model.access.csv @@ -4,4 +4,3 @@ "access_account_banking_import","account.bankimport","model_account_banking_imported_file","account.group_account_user",1,1,1,1 "access_payment_mode_type","payment.mode.type","model_payment_mode_type","account_payment.group_account_payment",1,1,1,1 "access_banking_import_transaction","Banking addons - Bank import transaction","model_banking_import_transaction","account.group_account_user",1,1,1,1 -"access_banking_transaction_wizard","Banking addons - Transaction wizard","model_banking_transaction_wizard","account.group_account_user",1,1,1,1 diff --git a/account_banking_sepa_credit_transfer/__openerp__.py b/account_banking_sepa_credit_transfer/__openerp__.py index 67abd8d38..c17dd0f34 100644 --- a/account_banking_sepa_credit_transfer/__openerp__.py +++ b/account_banking_sepa_credit_transfer/__openerp__.py @@ -20,6 +20,7 @@ ############################################################################## { 'name': 'Account Banking SEPA Credit Transfer', + 'summary': 'Create SEPA XML files for Credit Transfers', 'version': '0.1', 'license': 'AGPL-3', 'author': 'Akretion', diff --git a/account_banking_sepa_credit_transfer/account_banking_sepa_view.xml b/account_banking_sepa_credit_transfer/account_banking_sepa_view.xml index cd09a554a..653507e3d 100644 --- a/account_banking_sepa_credit_transfer/account_banking_sepa_view.xml +++ b/account_banking_sepa_credit_transfer/account_banking_sepa_view.xml @@ -14,7 +14,7 @@
- + @@ -26,7 +26,7 @@ - + @@ -59,7 +59,7 @@ - Generated SEPA XML files + Generated SEPA Credit Transfer XML files banking.export.sepa form tree,form @@ -73,7 +73,7 @@ /> Date: Thu, 26 Sep 2013 16:39:31 +0200 Subject: [PATCH 2/2] [FIX] Undefined reference to orm.except_orm --- account_banking_sepa_credit_transfer/wizard/export_sepa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking_sepa_credit_transfer/wizard/export_sepa.py b/account_banking_sepa_credit_transfer/wizard/export_sepa.py index 167fd7968..3033674aa 100644 --- a/account_banking_sepa_credit_transfer/wizard/export_sepa.py +++ b/account_banking_sepa_credit_transfer/wizard/export_sepa.py @@ -241,7 +241,7 @@ class banking_export_sepa_wizard(osv.osv_memory): creditor_agent_institution = etree.SubElement(creditor_agent, 'FinInstnId') creditor_agent_bic = etree.SubElement(creditor_agent_institution, bic_xml_tag) if not line.bank_id: - raise orm.except_orm(_('Error :'), _("Missing Bank Account on invoice '%s' (payment order line reference '%s').") %(line.ml_inv_ref.number, line.name)) + raise osv.except_osv(_('Error :'), _("Missing Bank Account on invoice '%s' (payment order line reference '%s').") %(line.ml_inv_ref.number, line.name)) creditor_agent_bic.text = line.bank_id.bank.bic creditor = etree.SubElement(credit_transfer_transaction_info, 'Cdtr') creditor_name = etree.SubElement(creditor, 'Nm')