NB: Unit price decreases at higher quantities: 5,10,20 etc (unless on sale).
Your Dynamic Snippet will be displayed here...
This message is displayed because youy did not provide both a filter and a template to use.
class Website(http.Controller):
@http.route(['/'], type='http', auth='public', website=True)
def index(self, **kw):
if http.request.env.user.partner_id.property_product_pricelist:
# Set the pricelist to the user's allocated pricelist
http.request.website.sale_get_order(force_pricelist=http.request.env.user.partner_id.property_product_pricelist.id)
return http.request.render('website.homepage')