Files
odoo_source/addons/test_mass_mailing/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

11 lines
350 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 = {'mass_mailing.iframe_css_assets_edit'}
return (js_assets | assets, css_assets | assets)