Files
odoo_source/addons/web_editor/models/ir_qweb.py
T
Nicolas Bayet b2faa9ea8c [FIX] base,web_editor,website: pregenerate lazyloaded bundles
Prior to this commit, lazy-loaded bundles weren't pregenerated,
potentially causing non-deterministic test failures when the
generation process took too long. Plus, each Python test loading these
bundles necessitated their regeneration.

With this commit, the lazy-loaded bundles are now included in the
pregenerated bundles.

task-3493014
runbot-24842

closes odoo/odoo#134464

Related: odoo/enterprise#46985
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-10-12 13:16:42 +00:00

16 lines
515 B
Python

# -*- coding: utf-8 -*-
from odoo import models
class IrQWeb(models.AbstractModel):
_inherit = "ir.qweb"
def _get_bundles_to_pregenarate(self):
js_assets, css_assets = super(IrQWeb, self)._get_bundles_to_pregenarate()
assets = {
'web_editor.assets_legacy_wysiwyg',
'web_editor.backend_assets_wysiwyg',
'web_editor.assets_wysiwyg',
'web_editor.wysiwyg_iframe_editor_assets',
}
return (js_assets | assets, css_assets | assets)