From 91e4d9a5b963f45921410872633d2909cdfa438e Mon Sep 17 00:00:00 2001 From: moerradi <moer@odoo.com> Date: Tue, 4 Jul 2023 13:50:50 +0100 Subject: [PATCH] [ADD] account_bacs: Added UK BACS Direct Credit and Direct Debit Implemented support for the BACS payment scheme as per the latest technical specifications, enabling the processing of BACS Direct Credits and Direct Debits. Included the mandatory requirement of a Service User Number (SUN) for businesses conducting transactions via BACS. closes odoo/odoo#128069 Task-id: 3326945 Related: odoo/enterprise#43923 Signed-off-by: Quentin De Paoli <qdp@odoo.com> --- addons/account/__init__.py | 2 ++ addons/account/populate/account_payment.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/__init__.py b/addons/account/__init__.py index f16988fe8e16..138004b08496 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -54,6 +54,8 @@ def _auto_install_l10n(env): 'PL', 'PT', 'RO', 'SI', 'TR', 'GB', 'VE', 'VN' ]: module_list.append('base_vat') + if country_code == 'uk': + module_list.append('account_bacs') module_ids = env['ir.module.module'].search([('name', 'in', module_list), ('state', '=', 'uninstalled')]) if module_ids: diff --git a/addons/account/populate/account_payment.py b/addons/account/populate/account_payment.py index 5d6e827620ad..bbb0a3a7fe02 100644 --- a/addons/account/populate/account_payment.py +++ b/addons/account/populate/account_payment.py @@ -61,7 +61,7 @@ class AccountPayment(models.Model): :return list<int>: list of ids of payment methods of the selected type """ need_bank_account = self._get_method_codes_needing_bank_account() - other_blacklist = ['sdd'] + other_blacklist = ['sdd', 'bacs_dd'] return self.env['account.payment.method.line'].search([ ('journal_id', '=', journal), ('payment_method_id.payment_type', '=', payment_type), -- GitLab