mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
Allow Item Templates in Work Order Items
Item Variants can be a part of the items tables, however, when BOM items are fetched to be a part of the Work Order items, item variants were being filtered out.
The filtering out does not serve a purpose. Having Item variants in BOMs allows for template like behaviour.
(cherry picked from commit 75396c02d2)
This commit is contained in:
committed by
Mergify
parent
37d0721f36
commit
a83e36b801
@@ -1019,7 +1019,6 @@ def get_bom_items_as_dict(
|
||||
where
|
||||
bom_item.docstatus < 2
|
||||
and bom.name = %(bom)s
|
||||
and ifnull(item.has_variants, 0) = 0
|
||||
and item.is_stock_item in (1, {is_stock_item})
|
||||
{where_conditions}
|
||||
group by item_code, stock_uom
|
||||
|
||||
Reference in New Issue
Block a user