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

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

(cherry picked from commit fb0ec74d086085160fbcca9ccfffb6966673e0cb)

Co-authored-by: David Arnold <dgx.arnold@gmail.com>
This commit is contained in:
mergify[bot] 2023-10-31 18:06:40 +05:30 committed by GitHub
parent 8b3c4a948c
commit 9aa29f55d9
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: if target.company_address:
target.update(get_fetch_values("Delivery Note", "company_address", 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) make_packing_list(target)
def condition(doc): def condition(doc):