Merge PR #2645 into 16.0

Signed-off-by dreispt
pull/2662/head
OCA-git-bot 2023-11-06 11:54:39 +00:00
commit c03af75259
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ patch(FormCompiler.prototype, "web_chatter_position", {
// For "sided", we have to remote the bottom chatter // For "sided", we have to remote the bottom chatter
// (except if there is an attachment viewer, as we have to force bottom) // (except if there is an attachment viewer, as we have to force bottom)
} else if (odoo.web_chatter_position === "sided") { } else if (odoo.web_chatter_position === "sided") {
const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
if (!formSheetBgXml) {
return res;
}
chatterContainerHookXml.setAttribute("t-if", false); chatterContainerHookXml.setAttribute("t-if", false);
// For "bottom", we keep the chatter in the form sheet // For "bottom", we keep the chatter in the form sheet
// (the one used for the attachment viewer case) // (the one used for the attachment viewer case)