Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
420 Представления

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


Аватар
Отменить
Лучший ответ

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
Аватар
Отменить