diff --git a/addons/website/controllers/form.py b/addons/website/controllers/form.py index 4701156b2f80954baa7f43d4d91b4d1b9df3c455..2bdf643760b371f966cb0e27dcd9f35c6472cd2f 100644 --- a/addons/website/controllers/form.py +++ b/addons/website/controllers/form.py @@ -214,7 +214,10 @@ class WebsiteForm(http.Controller): model_name = model.sudo().model if model_name == 'mail.mail': values.update({'reply_to': values.get('email_from')}) - record = request.env[model_name].with_user(SUPERUSER_ID).with_context(mail_create_nosubscribe=True).create(values) + record = request.env[model_name].with_user(SUPERUSER_ID).with_context( + mail_create_nosubscribe=True, + commit_assetsbundle=False, + ).create(values) if custom or meta: _custom_label = "%s\n___________\n\n" % _("Other Information:") # Title for custom fields diff --git a/odoo/addons/base/models/ir_actions_report.py b/odoo/addons/base/models/ir_actions_report.py index 30f6a73b58e598e99c10546d8c7e380299a8d4ee..a65229af29c0b53e02eda6166773831282107f40 100644 --- a/odoo/addons/base/models/ir_actions_report.py +++ b/odoo/addons/base/models/ir_actions_report.py @@ -849,7 +849,7 @@ class IrActionsReport(models.Model): # assets are not in cache and must be generated. To workaround this issue, we manually # commit the writes in the `ir.attachment` table. It is done thanks to a key in the context. context = dict(self.env.context) - if not config['test_enable']: + if not config['test_enable'] and 'commit_assetsbundle' not in context: context['commit_assetsbundle'] = True # Disable the debug mode in the PDF rendering in order to not split the assets bundle