Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][FIX] sale_layout_category_hide_detail: Full width to note lines #282

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ import {SectionAndNoteListRenderer} from "@account/components/section_and_note_f
import {patch} from "@web/core/utils/patch";

patch(SectionAndNoteListRenderer.prototype, {
getColumns(record) {
// Set record to use it in getSectionColumns()
this.record = record;
return super.getColumns(record);
},
getSectionColumns(columns) {
// We do not want to display icons in notes, only in sections
if (this.record.data.display_type !== "line_section") {
return super.getSectionColumns(columns);
}
var sectionCols = super.getSectionColumns(columns);
const widgetCols = columns.filter((col) => col.widget === "boolean_fa_icon");
const sectionWidget = widgetCols.map((col) => {
Expand Down
Loading