diff --git a/addons/sale/static/src/js/sale_product_field.js b/addons/sale/static/src/js/sale_product_field.js index 17318341e57..b2d90d2f14c 100644 --- a/addons/sale/static/src/js/sale_product_field.js +++ b/addons/sale/static/src/js/sale_product_field.js @@ -47,6 +47,12 @@ export class SaleOrderLineProductField extends Many2OneField { } } + get hasExternalButton() { + // Keep external button, even if field is specified as 'no_open' so that the user is not + // redirected to the product when clicking on the field content + const res = super.hasExternalButton; + return res || (!!this.props.value && !this.state.isFloating); + } get hasConfigurationButton() { return this.isConfigurableLine || this.isConfigurableTemplate; }