web_editor/models/ir_qweb.py

16 lines
515 B
Python
Raw Normal View History

2024-05-03 12:47:49 +03:00
# -*- 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)