Skip to content

Commit

Permalink
fix: additional data import
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Sep 30, 2024
1 parent 33cb489 commit d6991de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions erpnext/edi/doctype/code_list/code_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ def import_genericode(self, file_path, code_column, title_column=None, filters=N
if common_codes:
frappe.db.bulk_insert(
"Common Code",
fields=["name", "code_list", "common_code", "title"],
values=[(cc["name"], cc["code_list"], cc["common_code"], cc["title"]) for cc in common_codes],
fields=["name", "code_list", "common_code", "title", "additional_data"],
values=[
(cc["name"], cc["code_list"], cc["common_code"], cc["title"], cc["additional_data"])
for cc in common_codes
],
)

return {"code_list": self, "common_codes_count": len(common_codes)}

0 comments on commit d6991de

Please sign in to comment.