[19.0][MIG] web_chatter_position: Migration to 19.0#3325
[19.0][MIG] web_chatter_position: Migration to 19.0#3325BhaveshHeliconia wants to merge 21 commits intoOCA:19.0from
Conversation
DucTruongKomit
left a comment
There was a problem hiding this comment.
I tested, no application error and any wrong so far.
Could you help to solve pre-commit and squash commit, please? @BhaveshHeliconia
|
@BhaveshHeliconia I can not find the runboat instance to test, could you please help check? Thank you! |
mailing module - Because the chatter in mass mailing form view lie under a notebook tab, if user choose sided chatter, it will disappear
[IMP] web_chatter_position: improve function compile web_chatter_position: propose myself as maintainer
37130d2 to
7b41597
Compare
|
@quoc-pn : The Runboat instance is now up and running. You can test it now. Thanks! |
4614577 to
cc5e080
Compare
|
@quoc-pn : Good catch. I’ve fixed the issue and aligned the width with the “Responsive” position. Please check again. Thanks! |
|
There are some commit made by Bots, please follow steps in the link below to clear them. Thank you! |
cc5e080 to
b921fec
Compare
@quoc-pn Done. Thanks! |
web_chatter_position/__manifest__.py
Outdated
| "license": "LGPL-3", | ||
| "category": "Extra Tools", | ||
| "depends": ["web", "mail"], | ||
| "depends": ["web", "mail", "hr"], |
There was a problem hiding this comment.
Is it "hr" mandatory to have this feature?
There was a problem hiding this comment.
Can you remove it? I don't think users want an useless module for this feature
There was a problem hiding this comment.
Yes, I've removed it.
|
@BhaveshHeliconia |
Co-authored-by: Stefan Rijnhart <stefan@opener.amsterdam>
Currently translated at 100.0% (5 of 5 strings) Translation: web-18.0/web-18.0-web_chatter_position Translate-URL: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_chatter_position/fr_BE/
b921fec to
049dba1
Compare
| const chatterContainerXml = chatterContainerHookXml.querySelector( | ||
| "t[t-component='__comp__.mailComponents.Chatter']" | ||
| ); | ||
| // Const chatterParent = chatterContainerXml.parentNode; |
There was a problem hiding this comment.
Did you reconsider these changes after applying the changes for branch 18.0?
There was a problem hiding this comment.
Do we need to remove this code after applying the change from branch 18.0?
| } else if (odoo.web_chatter_position === "sided") { | ||
| setAttributes(chatterContainerXml, { | ||
| isInFormSheetBg: `__comp__.uiService.size < ${SIZES.XXL}`, | ||
| isChatterAside: `__comp__.uiService.size >= ${SIZES.XXL}`, | ||
| }); | ||
| setAttributes(chatterContainerHookXml, { | ||
| class: "o-mail-ChatterContainer o-mail-Form-chatter o-aside w-print-100", | ||
| }); | ||
| // For "bottom", we keep the chatter in the form sheet | ||
| // (the one used for the attachment viewer case) | ||
| // If it's not there, we create it. |
There was a problem hiding this comment.
Did you reconsider these changes after applying the changes for branch 18.0?
There was a problem hiding this comment.
Do we need to remove this code after applying the change from branch 18.0?
| const sheetBgChatterContainerXml = | ||
| sheetBgChatterContainerHookXml.querySelector( | ||
| "t[t-component='__comp__.mailComponents.Chatter']" | ||
| ); | ||
|
|
||
| setAttributes(sheetBgChatterContainerXml, { | ||
| isInFormSheetBg: "true", | ||
| }); |
There was a problem hiding this comment.
Did you reconsider these changes after applying the changes for branch 18.0?
There was a problem hiding this comment.
Do we need to remove this code after applying the change from branch 18.0?
I think you need to redo this process. |
|
Thanks for module web_chatter_position migrate to 19.x, good job |
I’ve already done the process. There are no bot commits anymore. |
quoc-pn
left a comment
There was a problem hiding this comment.
Please help resolve all reviews in the PR, thank you!
|
@quoc-pn The code was removed because Odoo 19 (following the architecture introduced in v18) now natively handles chatter positioning logic. Specifically, the mail module's native FormCompiler patch already identifies the Chatter component and dynamically sets the isInFormSheetBg and isChatterAside props based on the mailLayout() state. Since super.compile() is called first, these attributes are already correctly configured by Odoo. Manually reapplying them here is not only redundant but could conflict with Odoo 19's native responsiveness, especially when handling the 'Combo' layout or attachment previews. Removing this logic ensures a cleaner integration and prevents potential UI bugs during layout transitions |
049dba1 to
13ac70a
Compare

No description provided.