diff --git a/addons/website_event_meet/static/src/js/snippets/options.js b/addons/website_event_meet/static/src/js/snippets/options.js index 798afb1ae18..11c5cb15e8e 100644 --- a/addons/website_event_meet/static/src/js/snippets/options.js +++ b/addons/website_event_meet/static/src/js/snippets/options.js @@ -22,8 +22,10 @@ options.registry.WebsiteEvent.include({ * @see this.selectClass for parameters */ allowRoomCreation(previewMode, widgetValue, params) { - this.orm.write("event.event", [this.eventId], { + return this.orm.write("event.event", [this.eventId], { meeting_room_allow_creation: widgetValue, + // TODO: Remove the request_save in master, it's already done by the + // data-page-options set to true in the template. }).then(() => this.trigger_up('request_save', {reload: true, optionSelector: this.data.selector})); }, 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 88f35a5fa56..df15c536eb8 100644 --- a/addons/website_sale/static/src/js/website_sale.editor.js +++ b/addons/website_sale/static/src/js/website_sale.editor.js @@ -229,6 +229,7 @@ options.registry.WebsiteSaleProductsItem = options.Class.extend({ * @see this.selectClass for params */ changeSequence: function (previewMode, widgetValue, params) { + // TODO this should be awaited this.rpc('/shop/config/product', { product_id: this.productTemplateID, sequence: widgetValue, @@ -433,6 +434,7 @@ options.registry.WebsiteSaleProductsItem = options.Class.extend({ var $td = $(ev.currentTarget); var x = $td.index() + 1; var y = $td.parent().index() + 1 + // TODO this should be awaited somehow this.rpc('/shop/config/product', { product_id: this.productTemplateID, x: x, @@ -654,6 +656,7 @@ options.registry.WebsiteSaleProductPage = options.Class.extend({ * Removes all extra-images from the product. */ clearImages: function () { + // TODO this should be awaited this.rpc(`/shop/product/clear-images`, { model: this.mode, product_product_id: this.productProductID, @@ -757,6 +760,7 @@ options.registry.WebsiteSaleProductAttribute = options.Class.extend({ * @see this.selectClass for params */ setDisplayType: function (previewMode, widgetValue, params) { + // TODO this should be awaited this.rpc('/shop/config/attribute', { attribute_id: this.attributeID, display_type: widgetValue, @@ -819,6 +823,7 @@ options.registry.ReplaceMedia.include({ * */ async setPosition(previewMode, widgetValue, params) { + // TODO this should be awaited this.rpc('/shop/product/resequence-image', { image_res_model: this.recordModel, image_res_id: this.recordId,