[FIX] bi_sql_editor : handle correctly translation for action name

pull/670/head
Sylvain LE GAL 2020-11-12 23:15:24 +01:00 committed by OCA-git-bot
parent edb533e6de
commit 02ca14a37f
1 changed files with 3 additions and 1 deletions

View File

@ -680,7 +680,9 @@ class BiSQLView(models.Model):
if sql_view.action_id: if sql_view.action_id:
# Alter name of the action, to display last refresh # Alter name of the action, to display last refresh
# datetime of the materialized view # 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 @api.multi
def _refresh_size(self): def _refresh_size(self):