diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-11-18 13:22:59 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-01 14:07:07 +0000 |
| commit | 75ab52af9c067b4cbc5a67083e8d02736e11bc3c (patch) | |
| tree | 82ddee62d51421147e6c94239a9759bcbca22cfe /addons/website_sale/static | |
| parent | 0dd1f4595bc1a4b56eff8f9acd62ffcba78fac76 (diff) | |
[REF] web_editor, *: make options in charge of their rendering
* website, website_sale
Also make the "isTopOption" method a property.
This is done in preparation of better code for coupling sub-widgets used
to retrieve user value (button, input, colorpicker, ...) to actual
change in the edited DOM through snippet options methods.
Part of https://github.com/odoo/odoo/pull/40282
In preparation of task-2122935 and other tasks
Diffstat (limited to 'addons/website_sale/static')
| -rw-r--r-- | addons/website_sale/static/src/js/website_sale.editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 8d394bdd0b6..4f35b1bf00e 100644 --- a/addons/website_sale/static/src/js/website_sale.editor.js +++ b/addons/website_sale/static/src/js/website_sale.editor.js @@ -184,7 +184,7 @@ options.registry.WebsiteSaleProductsItem = options.Class.extend({ }).then(data => { var $menu = this.$el.find('[name="style"]'); for (var k in data) { - $menu.append(this.buildCheckboxElement(data[k]['name'], { + $menu.append(this._buildCheckboxElement(data[k]['name'], { dataAttributes: { 'style': data[k]['id'], 'toggleClass': data[k]['html_class'], |
