From 9f9ca39dc038e8f8af8d1439921dea84891bfc40 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Thu, 20 Oct 2016 11:09:06 +0200 Subject: [PATCH] [FIX] base: fix typo in log function in action server Migration in new api, remove user_id in the request. This commit avoid to have traceback: 'ValueError: : tuple index out of range' This commit closes #13860 --- odoo/addons/base/ir/ir_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/ir/ir_actions.py b/odoo/addons/base/ir/ir_actions.py index d83ff6521a7..709ac73178e 100644 --- a/odoo/addons/base/ir/ir_actions.py +++ b/odoo/addons/base/ir/ir_actions.py @@ -897,7 +897,7 @@ class IrActionsServer(models.Model): self._cr.execute(""" INSERT INTO ir_logging(create_date, create_uid, type, dbname, name, level, message, path, line, func) VALUES (NOW() at time zone 'UTC', %s, %s, %s, %s, %s, %s, %s, %s, %s) - """, ('server', self._cr.dbname, __name__, level, message, "action", action.id, action.name)) + """, (self.env.uid, 'server', self._cr.dbname, __name__, level, message, "action", action.id, action.name)) eval_context = super(IrActionsServer, self)._get_eval_context(action=action) model = self.env[action.model_id.model]