fix: incorrect bom no. added for non-variant items on variant boms (#26320)
This commit is contained in:
parent
0a79cfa170
commit
046e83bf50
@ -1100,6 +1100,8 @@ def make_variant_bom(source_name, bom_no, item, variant_items, target_doc=None):
|
||||
},
|
||||
'BOM Item': {
|
||||
'doctype': 'BOM Item',
|
||||
# stop get_mapped_doc copying parent bom_no to children
|
||||
'field_no_map': ['bom_no'],
|
||||
'condition': lambda doc: doc.has_variants == 0
|
||||
},
|
||||
}, target_doc, postprocess)
|
||||
|
Loading…
x
Reference in New Issue
Block a user