Skip to content

Commit

Permalink
IMP: bi_sql_editor lang
Browse files Browse the repository at this point in the history
Allow to call refresh materialized view with an explicit lang passed in
the context and have this get priority over the user's lang
  • Loading branch information
gurneyalex authored and thienvh332 committed Nov 29, 2024
1 parent f7630f2 commit 68c1980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bi_sql_editor/models/bi_sql_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def _refresh_materialized_view(self):
# Alter name of the action, to display last refresh
# datetime of the materialized view
sql_view.action_id.with_context(
lang=self.env.user.lang
lang=self.env.context.get("lang", self.env.user.lang)
).name = sql_view._prepare_action_name()

def _refresh_size(self):
Expand Down

0 comments on commit 68c1980

Please sign in to comment.