Skip to content

Commit a36ade5

Browse files
bosdbosd
authored andcommitted
[FIX] Shell model name, relace _ with .
1 parent 74f0c4a commit a36ade5

File tree

1 file changed

+3
-1
lines changed
  • src/odoo_data_flow/lib/internal

1 file changed

+3
-1
lines changed

src/odoo_data_flow/lib/internal/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def write_file(
6969
if filename:
7070
# Determine the target model name
7171
if model == "auto":
72-
model_name = os.path.basename(filename).replace(".csv", "")
72+
model_name = (
73+
os.path.basename(filename).replace(".csv", "").replace("_", ".")
74+
)
7375
else:
7476
model_name = model
7577

0 commit comments

Comments
 (0)