Skip to content

Commit

Permalink
C2C-373: Load domain files alphabetically (based on file name) as def…
Browse files Browse the repository at this point in the history
…ault loading order. (#55)

Load domain files alphabetically as default loading order.

Issue: https://mekomsolutions.slack.com/archives/G421UNF5L/p1731939893305329?thread_ts=1731493086.511119&cid=G421UNF5L
  • Loading branch information
Ruhanga authored Dec 3, 2024
1 parent dbe0bac commit 71ed956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo_initializer/utils/data_files_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_files(self, folder, allowed_extensions, model_name):
continue
import_files.append(file_path)

return import_files
return sorted(import_files)

def get_file_content(self, file_path, allowed_extensions):
with open(file_path, "r") as file_data:
Expand Down

0 comments on commit 71ed956

Please sign in to comment.