Skip to content

Commit

Permalink
fix(packed_item): ensure proper names for ref integrity (#37597)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao authored Oct 31, 2023
1 parent 139a68f commit fb0ec74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ def set_missing_values(source, target):
if target.company_address:
target.update(get_fetch_values("Delivery Note", "company_address", target.company_address))

# set target items names to ensure proper linking with packed_items
target.set_new_name()
make_packing_list(target)

def condition(doc):
Expand Down

0 comments on commit fb0ec74

Please sign in to comment.