Skip to content
Snippets Groups Projects
Commit f1c86c52 authored by Valeriya(vchu)'s avatar Valeriya(vchu)
Browse files

[FIX] sale_product_configurator: fix read properties error of undefined


If sales, inventory, project and renting are installed and product
configurator is enabled, when user adds one storable product and
confirms the order and adds one service product after the traceback
appears caused by reading properties of undefined variable parentList.

opw-3324320

closes odoo/odoo#131210

Signed-off-by: default avatarValeriya Chuprina (vchu) <vchu@odoo.com>
parent fd353d7d
Branches
Tags
No related merge requests found
......@@ -96,7 +96,7 @@ ProductConfiguratorWidget.include({
var self = this;
this._super.apply(this, arguments);
var parentList = self.getParent();
var unselectRow = (parentList.unselectRow || function() {}).bind(parentList); // form view on mobile
var unselectRow = (parentList && parentList.unselectRow || function() {}).bind(parentList); // form view on mobile
if (self.optionalProducts && self.optionalProducts.length !== 0) {
self.trigger_up('add_record', {
context: self._productsToRecords(self.optionalProducts),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment