[FIX] sale: do not show external button when no product is set

closes odoo/odoo#42695

X-original-commit: 1852db48a187e3011af5b396b23346a664924f56
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens
2020-01-03 14:09:49 +00:00
parent f13fdbb699
commit 28af3fe369
@@ -31,7 +31,9 @@ var ProductConfiguratorWidget = relationalFields.FieldMany2One.extend({
this._addConfigurationEditButton();
} else if (this.mode === 'edit' && this.value) {
this._addProductLinkButton();
this.$('.o_edit_product_configuration').hide();
} else {
this.$('.o_external_button').hide();
this.$('.o_edit_product_configuration').hide();
}
},