Skip to content

Commit ba021ce

Browse files
author
bosd
committed
[FIX]: Missing positional Arguments: worker, batch_size
1 parent b94aa8e commit ba021ce

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

src/odoo_data_flow/lib/internal/io.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ def write_file(
127127

128128
command_parts: list[str]
129129
if command == "import":
130-
command_parts = _build_import_command(filename, model, **kwargs)
130+
worker = kwargs.pop("worker", 1)
131+
batch_size = kwargs.pop("batch_size", 10)
132+
command_parts = _build_import_command(
133+
filename, model, worker, batch_size, **kwargs
134+
)
131135
elif command == "export":
132136
command_parts = _build_export_command(filename, model, **kwargs)
133137
else:

0 commit comments

Comments
 (0)