diff --git a/addons/website_sale/static/src/js/website_sale.editor.js b/addons/website_sale/static/src/js/website_sale.editor.js index ae8f6cff0fa..05d0d454c03 100644 --- a/addons/website_sale/static/src/js/website_sale.editor.js +++ b/addons/website_sale/static/src/js/website_sale.editor.js @@ -230,15 +230,16 @@ options.registry.WebsiteSaleGridLayout = options.Class.extend({ * @see this.selectClass for params */ setPpg: function (previewMode, widgetValue, params) { + const PPG_LIMIT = 10000; const ppg = parseInt(widgetValue); if (!ppg || ppg < 1) { return false; } - this.ppg = ppg; + this.ppg = Math.min(ppg, PPG_LIMIT); return this._rpc({ route: '/shop/config/website', params: { - 'shop_ppg': ppg, + 'shop_ppg': this.ppg, }, }); },