diff --git a/account_ebics_batch/__manifest__.py b/account_ebics_batch/__manifest__.py
index 77d566e..86060ca 100644
--- a/account_ebics_batch/__manifest__.py
+++ b/account_ebics_batch/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "EBICS Files batch import",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com",
diff --git a/account_ebics_batch/data/ir_cron_data.xml b/account_ebics_batch/data/ir_cron_data.xml
index 2726b75..9ea3f24 100644
--- a/account_ebics_batch/data/ir_cron_data.xml
+++ b/account_ebics_batch/data/ir_cron_data.xml
@@ -1,17 +1,15 @@
-
- EBICS Batch Import
-
- code
- model._batch_import()
-
- 1
- days
- -1
-
-
-
+
+ EBICS Batch Import
+
+ code
+ model._batch_import()
+
+ 1
+ days
+
+
diff --git a/account_ebics_batch/models/ebics_batch_log.py b/account_ebics_batch/models/ebics_batch_log.py
index bc2b025..8600a40 100644
--- a/account_ebics_batch/models/ebics_batch_log.py
+++ b/account_ebics_batch/models/ebics_batch_log.py
@@ -4,7 +4,7 @@
from sys import exc_info
from traceback import format_exception
-from odoo import _, api, fields, models
+from odoo import api, fields, models
from odoo.exceptions import UserError
@@ -49,7 +49,9 @@ class EbicsBatchLog(models.Model):
def unlink(self):
for log in self:
if log.state != "draft":
- raise UserError(_("Only log objects in state 'draft' can be deleted !"))
+ raise UserError(
+ self.env._("Only log objects in state 'draft' can be deleted !")
+ )
return super().unlink()
def button_draft(self):
@@ -94,12 +96,13 @@ class EbicsBatchLog(models.Model):
ebics_file_ids = []
for config in configs:
err_msg = (
- _("Error while processing EBICS connection '%s' :\n") % config.name
+ self.env._("Error while processing EBICS connection '%s' :\n")
+ % config.name
)
if config.state == "draft":
import_dict["errors"].append(
err_msg
- + _(
+ + self.env._(
"Please set state to 'Confirm' and "
"Reprocess this EBICS Import Log."
)
@@ -108,7 +111,7 @@ class EbicsBatchLog(models.Model):
if not any(config.mapped("ebics_userid_ids.ebics_passphrase_store")):
import_dict["errors"].append(
err_msg
- + _(
+ + self.env._(
"No EBICS UserID with stored passphrase found.\n"
"You should configure such a UserID for automated downloads."
)
diff --git a/account_ebics_batch/views/ebics_batch_log_views.xml b/account_ebics_batch/views/ebics_batch_log_views.xml
index 9ff7c20..1d20341 100644
--- a/account_ebics_batch/views/ebics_batch_log_views.xml
+++ b/account_ebics_batch/views/ebics_batch_log_views.xml
@@ -18,15 +18,15 @@
-
- ebics.batch.log.tree
+
+ ebics.batch.log.list
ebics.batch.log
-
+
-
+
@@ -78,16 +78,15 @@
-
-
+
-
+