This commit converts odoo modules that haven't been converted with commit https://github.com/odoo/odoo/pull/117305/commits/e10b45c69e72f09128e49eb46e42834b1ef515d7. The goal is to deprecate odoo.define in favor of native module and then simplify boot.js by removing the regexp that finds module dependencies. task id: 3162300 closes odoo/odoo#118812 Signed-off-by: Géry Debongnie <ged@odoo.com>
18 lines
469 B
JavaScript
18 lines
469 B
JavaScript
/** @odoo-module alias=website_sale.multirange.instance **/
|
|
|
|
import publicWidget from "web.public.widget";
|
|
import multirange from "website_sale.multirange";
|
|
|
|
publicWidget.registry.WebsiteMultirangeInputs = publicWidget.Widget.extend({
|
|
selector: 'input[type=range][multiple]:not(.multirange)',
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
start() {
|
|
return this._super.apply(this, arguments).then(() => {
|
|
multirange.init(this.el);
|
|
});
|
|
},
|
|
});
|