def METHOD_NAME(self, obj):
    stock = obj.stock
    if stock == None:
        return None
    orders = get_product_orders(obj)
    amount_ordered = sum([order.quantity for order in orders])
    return amount_ordered >= stock.amount