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

This commit is contained in:
David Arnold 2023-10-31 13:11:44 +01:00 committed by GitHub
parent 139a68fd0f
commit fb0ec74d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -759,6 +759,8 @@ def make_delivery_note(source_name, target_doc=None, kwargs=None):
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):