From 217629af1ddf65371bd0703e332fdd0d23283a68 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Thu, 12 Nov 2020 23:15:24 +0100 Subject: [PATCH] [FIX] bi_sql_editor : handle correctly translation for action name --- bi_sql_editor/models/bi_sql_view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bi_sql_editor/models/bi_sql_view.py b/bi_sql_editor/models/bi_sql_view.py index f8718721..ec67354f 100644 --- a/bi_sql_editor/models/bi_sql_view.py +++ b/bi_sql_editor/models/bi_sql_view.py @@ -680,7 +680,9 @@ class BiSQLView(models.Model): if sql_view.action_id: # Alter name of the action, to display last refresh # datetime of the materialized view - sql_view.action_id.name = sql_view._prepare_action_name() + sql_view.action_id.with_context( + lang=self.env.user.lang + ).name = sql_view._prepare_action_name() @api.multi def _refresh_size(self):