diff --git a/odoo/addons/base/ir/ir_qweb/assetsbundle.py b/odoo/addons/base/ir/ir_qweb/assetsbundle.py index a6fac8101e4..f2221e9f7cd 100644 --- a/odoo/addons/base/ir/ir_qweb/assetsbundle.py +++ b/odoo/addons/base/ir/ir_qweb/assetsbundle.py @@ -112,8 +112,11 @@ class AssetsBundle(object): if self.css_errors: msg = '\n'.join(self.css_errors) response.append(JavascriptAsset(self, inline=self.dialog_message(msg)).to_html()) - for style in self.stylesheets: - response.append(style.to_html()) + response.append(StylesheetAsset(self, url="/web/static/lib/bootstrap/css/bootstrap.css").to_html()) + if not self.css_errors: + for style in self.stylesheets: + response.append(style.to_html()) + if js: for jscript in self.javascripts: response.append(jscript.to_html())