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

This commit is contained in:
GangaManoj 2021-11-23 04:51:53 +05:30
parent e7eef9601d
commit 406278b5c1

View File

@ -925,6 +925,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)