Files
odoo_source/addons
Aaron Bohy 11cc762d7a [FIX] mail,project: remove chatter flickering
Before this commit, when a form view was re-rendered (e.g. when
switching to "edit" or "readonly" modes, when using the pager...),
the chatter briefly disappeared and then reappeared, which produced
a flickering. This has been introduced by the adaptation of the JS
codebase to owl 2 [1]: when the form view had to be re-rendered,
we reused the DOM element containing the chatter in the new
rendering (done in memory), which was thus detached from the DOM.
That element was re-inserted into the DOM later on, alongside the
rest of the newly rendered elements.

This commit fixes the issue by using a specific "hook" element when
rendering the form view, and replacing that hook by the actual
(unchanged) chatter container element when the rendering is done
and the DOM is patched.

This commit also removes unnecessary overrides in project:
- _renderNode was dead code, classname "oe_project_sharing_chatter"
 no longer exists in the codebase since [2]
- _makeChatterContainerTarget replicated what was originally
 already done in the mail FormRenderer (for appearently no valid
 reason), so obviously, that override wasn't synchronized with
 this fix.

[1] edd79ff560
[2] a28cc6333a

closes odoo/odoo#84429

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-02-11 18:19:57 +00:00
..
2022-01-28 14:10:01 +00:00
2022-02-10 07:46:13 +00:00
2022-02-10 07:46:13 +00:00
2022-02-10 07:46:13 +00:00
2022-02-10 07:46:13 +00:00
2022-02-10 07:46:13 +00:00
2022-01-28 14:10:01 +00:00
2022-02-10 07:46:13 +00:00
2022-02-10 07:46:13 +00:00
2022-02-10 07:46:13 +00:00
2022-01-31 13:58:03 +00:00
2022-02-10 07:46:13 +00:00
2022-01-28 14:10:01 +00:00
2022-02-10 07:46:13 +00:00
2022-02-07 16:22:54 +00:00
2022-02-07 16:22:54 +00:00
2022-02-10 07:46:13 +00:00
2022-02-11 13:21:02 +00:00
2022-02-10 07:46:13 +00:00