From 3d59cdb64296002761a0e3a76f917e13d641cbeb Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 3 Jan 2025 15:01:54 +0100 Subject: [PATCH] [IMP] account_ebics: hide process button on ebics_file when no download process --- account_ebics_batch/__manifest__.py | 2 +- account_ebics_batch/models/ebics_batch_log.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/account_ebics_batch/__manifest__.py b/account_ebics_batch/__manifest__.py index 86060ca..5acfef6 100644 --- a/account_ebics_batch/__manifest__.py +++ b/account_ebics_batch/__manifest__.py @@ -1,4 +1,4 @@ -# Copyright 2009-2024 Noviat. +# Copyright 2009-2025 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { diff --git a/account_ebics_batch/models/ebics_batch_log.py b/account_ebics_batch/models/ebics_batch_log.py index 8600a40..93a2ed9 100644 --- a/account_ebics_batch/models/ebics_batch_log.py +++ b/account_ebics_batch/models/ebics_batch_log.py @@ -182,7 +182,9 @@ class EbicsBatchLog(models.Model): return file_ids def _ebics_process(self, import_dict): - to_process = self.file_ids.filtered(lambda r: r.state == "draft") + to_process = self.file_ids.filtered( + lambda r: r.download_process_method and r.state == "draft" + ) for ebics_file in to_process: ebics_file.process()