Skip to content

Commit 0e425f4

Browse files
committed
Merge PR #64 into 16.0
Signed-off-by etobella
2 parents e383192 + 25fb2e4 commit 0e425f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

edi_storage_oca/models/edi_backend.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ def _storage_get_input_filenames(self, exchange_type):
166166
if exchange_type.exchange_file_ext:
167167
bits.append(r"\." + exchange_type.exchange_file_ext)
168168
pattern = "".join(bits)
169-
full_paths = utils.find_files(self.storage_id, pattern, full_input_dir_pending)
170-
pending_path_len = len(full_input_dir_pending)
171-
return [p[pending_path_len:].strip("/") for p in full_paths]
169+
relative_paths = utils.find_files(
170+
self.storage_id, pattern, full_input_dir_pending
171+
)
172+
return [p.strip("/") for p in relative_paths]
172173

173174
def _storage_new_exchange_record_vals(self, file_name):
174175
return {

0 commit comments

Comments
 (0)