mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-12-23 18:01:45 +00:00
Merge pull request #26 from brain-tec/16.0.project_TO_553_t147226
[t147226][UDO-1410] apply commit 467e139a1894cf4fe4cc8392350bd318ecba…
This commit is contained in:
commit
f6d4fdd47a
@ -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/",
|
||||
|
@ -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])
|
||||
|
@ -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_keys + "/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_keys + "/tmp")
|
||||
if not os.path.isdir(tmp_dir):
|
||||
os.makedirs(tmp_dir, mode=0o700)
|
||||
fn_date = fields.Date.today().isoformat()
|
||||
|
Loading…
Reference in New Issue
Block a user