Skip to content

Commit

Permalink
[FIX] test_themes: call post_copy again on test_themes' themes
Browse files Browse the repository at this point in the history
Since [1], the themes installed in the `_post_init` hook of test_themes
would not go through the `_post_copy()` anymore.
It is not a big deal as this module purpose is to ease our tests and
quickly being able to navigate through themes when we need to, but still
this is something that need to be fixed as otherwise the themes would
not really reflect how they look like.

Typically, go to the Odoo Experts theme, which is supposed to have the
"Contact" header template, it will not have that header layout.

[1]: odoo/odoo@b8a24ef

closes odoo#611

X-original-commit: fea8479
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
  • Loading branch information
rdeodoo committed Oct 28, 2022
1 parent d9bb32b commit 600f3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_themes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ def post_init_hook(cr, registry):
'record': website,
'noupdate': True, # Avoid unlink on -u
})
theme._theme_get_stream_themes()._theme_load(website)
theme.with_context(apply_new_theme=True)._theme_get_stream_themes()._theme_load(website)
env['ir.model.data']._update_xmlids(xmlids)

0 comments on commit 600f3b6

Please sign in to comment.