<t t-foreach= "costSP" t-as="cost_cPriceS">
<span itemprop="price" style="display:none;" t-esc="cost_cPriceS.standard_price"/>
<span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name"/>
</t>
if request.env.user.premium_user == True:
cPrice = request.env['product.template'].search([('id','!=',False)])
cost_cp = {'costSP':cPrice}
return request.render("shopping_cart.usertype",cost_cp)
I will get the following error
"'NoneType' object is not iterable" while evaluating "keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))"