From 61f4e24326ad32a4fb4f3ad22bbeaf7f96ef1a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Didderen?= Date: Fri, 1 Sep 2023 10:53:05 +0200 Subject: [PATCH] account_ebics - remove legacy ebics_files from code --- account_ebics/__manifest__.py | 2 +- account_ebics/models/ebics_config.py | 4 ---- account_ebics/models/ebics_userid.py | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/account_ebics/__manifest__.py b/account_ebics/__manifest__.py index 5e194dd..9a5bef2 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -3,7 +3,7 @@ { "name": "EBICS banking protocol", - "version": "16.0.1.4.0", + "version": "16.0.1.5.0", "license": "LGPL-3", "author": "Noviat", "website": "https://www.noviat.com/", diff --git a/account_ebics/models/ebics_config.py b/account_ebics/models/ebics_config.py index a7b6fe5..de66a22 100644 --- a/account_ebics/models/ebics_config.py +++ b/account_ebics/models/ebics_config.py @@ -148,10 +148,6 @@ class EbicsConfig(models.Model): help="Companies sharing this EBICS contract.", ) - @api.model - def _default_ebics_files(self): - return "/".join(["/home/odoo/ebics_files", self._cr.dbname]) - @api.model def _default_ebics_keys(self): return "/".join(["/etc/odoo/ebics_keys", self._cr.dbname]) diff --git a/account_ebics/models/ebics_userid.py b/account_ebics/models/ebics_userid.py index 89a9977..c6c495a 100644 --- a/account_ebics/models/ebics_userid.py +++ b/account_ebics/models/ebics_userid.py @@ -403,7 +403,7 @@ class EbicsUserID(models.Model): else: lang = self.env.user.lang or self.env["res.lang"].search([])[0].code lang = lang[:2] - tmp_dir = os.path.normpath(self.ebics_config_id.ebics_files + "/tmp") + tmp_dir = os.path.normpath(self.ebics_config_id.ebics_host + "/tmp") if not os.path.isdir(tmp_dir): os.makedirs(tmp_dir, mode=0o700) fn_date = fields.Date.today().isoformat() @@ -479,7 +479,7 @@ class EbicsUserID(models.Model): raise UserError(error) from err public_bank_keys = public_bank_keys.encode() - tmp_dir = os.path.normpath(self.ebics_config_id.ebics_files + "/tmp") + tmp_dir = os.path.normpath(self.ebics_config_id.ebics_host + "/tmp") if not os.path.isdir(tmp_dir): os.makedirs(tmp_dir, mode=0o700) fn_date = fields.Date.today().isoformat()