Skip to content

Commit 320afd8

Browse files
Update src/odoo_data_flow/export_threaded.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent eaaad1f commit 320afd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/odoo_data_flow/export_threaded.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ def _enrich_main_df_with_xml_ids(
454454
pl.format("{}.{}", pl.col("module"), pl.col("name")).alias("xml_id")
455455
)
456456
.select(pl.col("res_id").cast(pl.Int64), "xml_id")
457+
.unique(subset=["res_id"], keep="first")
457458
)
458459

459460
# Join to get the xml_id, overwrite 'id', and drop temporary columns.

0 commit comments

Comments
 (0)