mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-14 06:35:36 +00:00
[IMP] account_ebics: hide process button on ebics_file when no download process
This commit is contained in:
@@ -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