[FIX] sale: keep product external button on order lines

X-original-commit: f09af5332487a9e579cc7243ecabd87461c2d97f
Part-of: odoo/odoo#102731
This commit is contained in:
Victor Feyens
2022-10-09 22:03:50 +02:00
parent 94e05f9eed
commit 4eeadbc6c2
@@ -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;
}