[FIX] sale: use theme design for optional product modal
Since the product configurator task, the optional product modal was always using the backend style instead of the theme style. task-1911015 closes odoo/odoo#29587
This commit is contained in:
@@ -47,7 +47,7 @@ var OptionalProductsModal = Dialog.extend(ServicesMixin, ProductConfiguratorMixi
|
||||
init: function (parent, params) {
|
||||
var self = this;
|
||||
|
||||
this._super(parent, {
|
||||
var options = _.extend({
|
||||
size: 'large',
|
||||
buttons: [{
|
||||
text: params.okButtonText,
|
||||
@@ -57,8 +57,10 @@ var OptionalProductsModal = Dialog.extend(ServicesMixin, ProductConfiguratorMixi
|
||||
text: params.cancelButtonText,
|
||||
click: this._onCancelButtonClick
|
||||
}],
|
||||
title: params.title
|
||||
});
|
||||
technical: !params.isWebsite,
|
||||
}, params || {});
|
||||
|
||||
this._super(parent, options);
|
||||
|
||||
this.rootProduct = params.rootProduct;
|
||||
this.container = parent;
|
||||
|
||||
Reference in New Issue
Block a user