From bc3b864c4223a0a1bca20f9f4f63215698c5c1f2 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Wed, 25 Dec 2024 16:05:40 +0100 Subject: [PATCH] [MIG] account_ebics_batch_payment: Migration to 18.0 --- account_ebics/models/account_bank_statement.py | 2 +- account_ebics/models/fintech_ebics_register.py | 2 +- account_ebics/wizards/ebics_admin_order.py | 2 +- account_ebics_batch_payment/__manifest__.py | 2 +- .../models/account_batch_payment.py | 12 +++++++----- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/account_ebics/models/account_bank_statement.py b/account_ebics/models/account_bank_statement.py index 89c5eaf..1ae0bbf 100644 --- a/account_ebics/models/account_bank_statement.py +++ b/account_ebics/models/account_bank_statement.py @@ -1,4 +1,4 @@ -# Copyright 2009-2023 Noviat. +# Copyright 2009-2024 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). from odoo import fields, models diff --git a/account_ebics/models/fintech_ebics_register.py b/account_ebics/models/fintech_ebics_register.py index ed6be8e..dc218f5 100644 --- a/account_ebics/models/fintech_ebics_register.py +++ b/account_ebics/models/fintech_ebics_register.py @@ -1,4 +1,4 @@ -# Copyright 2009-2020 Noviat. +# Copyright 2009-2024 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). import logging diff --git a/account_ebics/wizards/ebics_admin_order.py b/account_ebics/wizards/ebics_admin_order.py index 8d4b9a9..0825491 100644 --- a/account_ebics/wizards/ebics_admin_order.py +++ b/account_ebics/wizards/ebics_admin_order.py @@ -1,4 +1,4 @@ -# Copyright 2009-2023 Noviat. +# Copyright 2009-2024 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). import pprint diff --git a/account_ebics_batch_payment/__manifest__.py b/account_ebics_batch_payment/__manifest__.py index 7c71fee..8c47326 100644 --- a/account_ebics_batch_payment/__manifest__.py +++ b/account_ebics_batch_payment/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Upload Batch Payment via EBICS", - "version": "17.0.1.0.3", + "version": "18.0.1.0.0", "license": "LGPL-3", "author": "Noviat", "website": "https://www.noviat.com", diff --git a/account_ebics_batch_payment/models/account_batch_payment.py b/account_ebics_batch_payment/models/account_batch_payment.py index f80ed4e..dbb4ae6 100644 --- a/account_ebics_batch_payment/models/account_batch_payment.py +++ b/account_ebics_batch_payment/models/account_batch_payment.py @@ -1,7 +1,7 @@ -# Copyright 2009-2023 Noviat. +# Copyright 2009-2024 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). -from odoo import _, models +from odoo import models from odoo.exceptions import UserError @@ -12,7 +12,7 @@ class AccountBatchPayment(models.Model): self.ensure_one() ctx = self.env.context.copy() - origin = _("Batch Payment") + ": " + self.name + origin = self.env._("Batch Payment") + ": " + self.name ebics_config = self.env["ebics.config"].search( [ ("journal_ids", "=", self.journal_id.id), @@ -21,7 +21,9 @@ class AccountBatchPayment(models.Model): ) if not ebics_config: raise UserError( - _("No active EBICS configuration available " "for the selected bank.") + self.env._( + "No active EBICS configuration available for the selected bank." + ) ) if len(ebics_config) == 1: ctx["default_ebics_config_id"] = ebics_config.id @@ -43,7 +45,7 @@ class AccountBatchPayment(models.Model): ebics_xfer._onchange_upload_data() view = self.env.ref("account_ebics.ebics_xfer_view_form_upload") act = { - "name": _("EBICS Upload"), + "name": self.env._("EBICS Upload"), "view_type": "form", "view_mode": "form", "res_model": "ebics.xfer",