fix: map pick list invoice items only

This commit is contained in:
Mihir Kandoi
2026-06-04 22:14:49 +05:30
parent 736617a1a1
commit 807708300c

View File

@@ -1468,6 +1468,9 @@ def create_delivery_from_so(pick_list, sales_order_list, target, target_doc=None
if not target_doc:
return
if target == "Sales Invoice":
target_doc.set("items", [])
for so in sales_order_list:
map_pl_locations(pick_list, item_table_mapper, target_doc, so)