Open nsdadmin opened 1 year ago
Can you be more specific on "KB Module"? Enterprise? OCA?
The new Knowledge Base Module. Yes, we're in Enterprise on odoo.sh
Matthew Glennon National Security & Door Corp.
Please use the following address for IT support related requests: @. On Mar 31, 2023 at 05:49 -0400, Carlos Liébana Anero @.>, wrote:
Can you be more specific on "KB Module"? Enterprise? OCA? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
The same thing happens when trying to open a Mailing (from Email Marketing).
In my case, with debug=assets set, the key JS line is this one:
Caused by: TypeError: Cannot read properties of null (reading 'append') at append (http://localhost:8069/web/assets/debug/web.assets_backend.js:18700:12) (/web/static/src/core/utils/xml.js:69) at FormCompiler.compile (http://localhost:8069/web/assets/debug/web.assets_backend.js:237642:17) (/web_chatter_position/static/src/js/web_chatter_position.esm.js:133)
In my case, L128 returns null (sadly the div with the "o_form_sheet_bg" class is not present): const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
As a result, L133 fails: append(formSheetBgXml, sheetBgChatterContainerHookXml);
In my case, I made a quick test and right after L128
const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
I added an if
statement checking for null
and only if not null, I executed everything else, and it worked (the error is gone for Mailings and the chatter is properly moved for other records).
if (formSheetBgXml != null) {
const sheetBgChatterContainerHookXml =
chatterContainerHookXml.cloneNode(true);
sheetBgChatterContainerHookXml.classList.add("o-isInFormSheetBg");
sheetBgChatterContainerHookXml.setAttribute("t-if", true);
append(formSheetBgXml, sheetBgChatterContainerHookXml);
const sheetBgChatterContainerXml =
sheetBgChatterContainerHookXml.querySelector("ChatterContainer");
sheetBgChatterContainerXml.setAttribute("isInFormSheetBg", "true");
chatterContainerHookXml.setAttribute("t-if", false);
}
FYI @liebana
Is there a plan to fix this bug? We are also experiencing it.
While nobody provides the fix, no.
also for me
The same thing happens when trying to open a Mailing (from Email Marketing).
In my case, with debug=assets set, the key JS line is this one:
Caused by: TypeError: Cannot read properties of null (reading 'append') at append (http://localhost:8069/web/assets/debug/web.assets_backend.js:18700:12) (/web/static/src/core/utils/xml.js:69) at FormCompiler.compile (http://localhost:8069/web/assets/debug/web.assets_backend.js:237642:17) (/web_chatter_position/static/src/js/web_chatter_position.esm.js:133)
In my case, L128 returns null (sadly the div with the "o_form_sheet_bg" class is not present): const formSheetBgXml = res.querySelector(".o_form_sheet_bg");
As a result, L133 fails: append(formSheetBgXml, sheetBgChatterContainerHookXml);
i have the same issue, did u fix it?
I have proposed the following PR to fix the issue: https://github.com/OCA/web/pull/2571 Let's see if and when it is accepted
The issue should be closed as the fix is merged.
Module
web_chatter_position
Describe the bug
Web chatter position module can't move the collapsed chatter when user is set to force to bottom causing an error.
To Reproduce
Affected versions:
Steps to reproduce the behavior:
Expected behavior Be able to open the KB Module.
Additional context