Skip to content

Commit

Permalink
fix(packed_item): ensure proper names for ref integrity (backport #37597
Browse files Browse the repository at this point in the history
) (#37794)

fix(packed_item): ensure proper names for ref integrity (#37597)

(cherry picked from commit fb0ec74)

Co-authored-by: David Arnold <dgx.arnold@gmail.com>
  • Loading branch information
mergify[bot] and blaggacao authored Oct 31, 2023
1 parent 8b3c4a9 commit 9aa29f5
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 9aa29f5

Please sign in to comment.