Skip to content

Commit

Permalink
[IMP] Add showChatter option to FormViewDialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
amh-mw committed Jun 9, 2023
1 parent a04a10d commit 05993da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/web/static/src/legacy/js/views/view_dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ var FormViewDialog = ViewDialog.extend({
this.deletable = options.deletable;
this.editable = options.editable;
this.disable_multiple_selection = options.disable_multiple_selection;
this.showChatter = options.showChatter || false;
var oBtnRemove = 'o_btn_remove';

var multi_select = !_.isNumber(options.res_id) && !options.disable_multiple_selection;
Expand Down Expand Up @@ -211,7 +212,7 @@ var FormViewDialog = ViewDialog.extend({
model: self.model,
parentID: self.parentID,
recordID: self.recordID,
isFromFormViewDialog: true,
isFromFormViewDialog: !self.showChatter,
editable: self.editable
});
return formview.getController(self);
Expand Down

0 comments on commit 05993da

Please sign in to comment.