Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
427 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ