Skip to content

Commit

Permalink
[IMP] sale_layout_category_hide_detail: Add function to allow renderB…
Browse files Browse the repository at this point in the history
…odyCell

TT49131
  • Loading branch information
victoralmau committed May 14, 2024
1 parent 388f759 commit 7c10fe1
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ odoo.define(
nbrColumns -= this._getNumberOfLineSectionFields();
return nbrColumns;
},
_renderBodyCell: function (record, node) {
var $cell = this._super.apply(this, arguments);
_allowRenderBodyCell: function (record) {
// Method to be overwritten if someone needs it
var isSection = record.data.display_type === "line_section";
var isNote = record.data.display_type === "line_note";
if (isSection || isNote) {
return isSection || isNote;
},
_renderBodyCell: function (record, node) {
var $cell = this._super.apply(this, arguments);
if (this._allowRenderBodyCell(record)) {
if (this._allowRemoveClassHidden(node.attrs.name)) {
return $cell.removeClass("o_hidden");
} else if (node.attrs.name === "name") {
Expand Down

0 comments on commit 7c10fe1

Please sign in to comment.