diff --git a/src/OpenIntranet/templates/production.bom_table.hbs b/src/OpenIntranet/templates/production.bom_table.hbs index 2c4672f..7f9519e 100644 --- a/src/OpenIntranet/templates/production.bom_table.hbs +++ b/src/OpenIntranet/templates/production.bom_table.hbs @@ -1,11 +1,11 @@ {%for i, row in enumerate(data) %} {% set valid = bson.objectid.ObjectId.is_valid(row['cUST_ID']) %} -{% set exclude_row = row.get('_id', {}).get('exclude_from_bom', False) %} +{% set exclude_row = row.get('exclude_from_bom', False) %} {% if not exclude_row %} -
#{{i+1}}
+
#{{i+1}}
{{len(row['Ref'])}} ×