Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
422 Zobrazení

Hi,

In Odoo 18, under the Sales module's Quotations view, within the Order Lines section, there is a 'View Button' checkbox in the column dropdown. How can I permanently remove this 'View Button' option from the dropdown so users cannot enable or disable it


Avatar
Zrušit
Nejlepší odpověď

Relevant js that renders the button in the first place should be around

get hasOptionalOpenFormViewColumn() {
return this.props.editable && this.env.debug && !this.props.hasOpenFormViewButton;
}

That being said, you must be in debug mode and the form must be editable in order to see that button.

So, you could extend that js function to prevent the button from appearing.

Or, inherit and modify the template that actually checks for it and renders the button, which would be 

web.ListRenderer
Avatar
Zrušit