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
(cherry picked from commit fb0ec74)
  • Loading branch information
blaggacao authored and mergify[bot] committed Oct 31, 2023
1 parent 8b3c4a9 commit b69c74e
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 b69c74e

Please sign in to comment.