Skip to content

Commit

Permalink
[FIX] sale: use theme design for optional product modal
Browse files Browse the repository at this point in the history
Since the product configurator task, the optional product modal was
always using the backend style instead of the theme style.

task-1911015
  • Loading branch information
qsm-odoo committed Dec 17, 2018
1 parent 8a1f9f0 commit e632a10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addons/sale/static/src/js/product_configurator_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit e632a10

Please sign in to comment.