'Control if a BoM line should be produce, can be inherited for add
custom control. It currently checks that all variant values are in the
product.'

def _skip_bom_line(self, product):

    if self.attribute_value_ids:
        if ((not product) or (self.attribute_value_ids - product.attribute_value_ids)):
            return True
    return False
