mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
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
This commit is contained in:
committed by
OCA-git-bot
parent
d27ab5e2b6
commit
6a59377145
@@ -716,7 +716,7 @@ class BiSQLView(models.Model):
|
||||
# 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):
|
||||
|
||||
Reference in New Issue
Block a user