From 6285b69281f5753f74fe4280e53543fc5fd03870 Mon Sep 17 00:00:00 2001 From: Julien Van Roy Date: Tue, 16 Aug 2022 14:54:19 +0000 Subject: [PATCH] [IMP] account_edi: remove dead function _is_account_edi_ubl_cii_available This function was used to check the presence of the new module `account_edi_ubl_cii`. The purpose was to use this module to render the xmls for the existing modules: l10n_be_edi, l10n_no_edi, l10n_nl_edi... which used outdated qweb templates (see https://github.com/odoo/odoo/commit/72c4972efd3f31bd86d100f160a530cc70400617). After version saas-15.4, these old modules were removed and `account_edi_ubl_cii` is used instead. Thus, `_is_account_edi_ubl_cii_available` is no longer used. closes odoo/odoo#98208 Signed-off-by: Laurent Smet --- addons/account_edi/models/account_edi_format.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/account_edi/models/account_edi_format.py b/addons/account_edi/models/account_edi_format.py index 54526651226..5071002d597 100644 --- a/addons/account_edi/models/account_edi_format.py +++ b/addons/account_edi/models/account_edi_format.py @@ -638,6 +638,3 @@ class AccountEdiFormat(models.Model): def _format_error_message(self, error_title, errors): bullet_list_msg = ''.join('
  • %s
  • ' % html_escape(msg) for msg in errors) return '%s' % (error_title, bullet_list_msg) - - def _is_account_edi_ubl_cii_available(self): - return hasattr(self, '_infer_xml_builder_from_tree')