[FIX] website, website_sale: properly save filter id of dynamic snippets
closes odoo/odoo#62114 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -34,6 +34,7 @@ const dynamicSnippetOptions = snippetOptions.SnippetOptionWidget.extend({
|
||||
this._super.apply(this, arguments);
|
||||
if (params.attributeName === 'filterId' && previewMode === false) {
|
||||
this.$target.get(0).dataset.numberOfRecords = this.dynamicFilters[parseInt(widgetValue)].limit;
|
||||
this.updateChangesInWysiwyg();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ const dynamicSnippetProductsOptions = s_dynamic_snippet_carousel_options.extend(
|
||||
}).then((data) => {
|
||||
this.$target.get(0).dataset.filterId = data[0].res_id;
|
||||
this.$target.get(0).dataset.numberOfRecords = this.dynamicFilters[data[0].res_id].limit;
|
||||
this.updateChangesInWysiwyg();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user