fix: Add bundle items to PO only if the Product Bundle was selected from the SO

(cherry picked from commit 406278b5c1)
This commit is contained in:
GangaManoj
2021-11-23 04:51:53 +05:30
committed by mergify-bot
parent 742ede7ba4
commit e8e0faa23a

View File

@@ -971,6 +971,7 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
"supplier",
"pricing_rules"
],
"condition": lambda doc: doc.parent_item in items_to_map
}
}, target_doc, set_missing_values)