mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-10-16 15:59:09 +00:00
[IMP] account_ebics: hide process button on ebics_file when no download process
This commit is contained in:
1 parent
7425d6003b
commit
30313e58a4
11 files changed
+113
-81
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user