Skip to content

Commit 9644d46

Browse files
gurneyalexthienvh332
authored andcommitted
IMP: bi_sql_editor lang
Allow to call refresh materialized view with an explicit lang passed in the context and have this get priority over the user's lang
1 parent 77b3516 commit 9644d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bi_sql_editor/models/bi_sql_view.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def _refresh_materialized_view(self):
684684
# Alter name of the action, to display last refresh
685685
# datetime of the materialized view
686686
sql_view.action_id.with_context(
687-
lang=self.env.user.lang
687+
lang=self.env.context.get("lang", self.env.user.lang)
688688
).name = sql_view._prepare_action_name()
689689

690690
def _refresh_size(self):

0 commit comments

Comments
 (0)