[IMP] account_ebics: hide process button on ebics_file when no download process

This commit is contained in:
Luc De Meyer
2025-01-03 15:01:54 +01:00
parent 7425d6003b
commit 30313e58a4
11 changed files with 113 additions and 81 deletions

View File

@@ -1,9 +1,9 @@
# Copyright 2009-2023 Noviat.
# Copyright 2009-2025 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "EBICS Files batch import",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"license": "AGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com/",

View File

@@ -179,7 +179,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()