[FIX] website: Assets depend on debug mode
issue: The debug-assets didn't work anymore. The t-cache placed on the header allowing not to redo this one for each rendering did not depend on the debug mode. closes odoo/odoo#93590 X-original-commit: 3061a484168ff21e3ae7e40ce691d299b63484a4 Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com> Signed-off-by: Christophe Matthieu (chm) <chm@odoo.com>
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//head" position="attributes">
|
||||
<attribute name="t-cache">main_object if main_object and main_object._name == 'website.page' and not (editable or translatable) else None</attribute>
|
||||
<attribute name="t-cache">('assets' in request.session.debug, main_object) if main_object and main_object._name == 'website.page' and not (editable or translatable) else None</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//head/*[1]" position="before">
|
||||
<t t-if="not title">
|
||||
|
||||
Reference in New Issue
Block a user