[FIX] sale: keep product external button on order lines
X-original-commit: f09af5332487a9e579cc7243ecabd87461c2d97f Part-of: odoo/odoo#102731
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user