[FIX] sale_product_configurator: stop hiding subsequent dialogs after configuration step
Steps to reproduce the bug: - install `”sale_product_configurator”` - Go to the sales settings and enable the “Warnings” option - Create a product with variants - Add sale warning - Create a SO and add the product Problem: The warning message is not appearing Solution: The product configurator does not need to hide modals after the product is added. This fix ensures that any modals displayed after adding the product (such as warnings, messages, etc.) are correctly displayed and not hidden. opw-2696002 opw-2679495 closes odoo/odoo#80331 X-original-commit: e82230fd395fa71081dc94ffefc39b51ad258382 Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
This commit is contained in:
@@ -258,6 +258,16 @@ var ProductConfiguratorFormController = FormController.extend({
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove "d-none" to allow other modals to display
|
||||
*
|
||||
* @override
|
||||
*/
|
||||
destroy: function () {
|
||||
$('.o_dialog_container').removeClass('d-none');
|
||||
this._super.apply(this, arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* Update product configurator form
|
||||
* when quantity is updated in the optional products window
|
||||
|
||||
Reference in New Issue
Block a user