mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Update roadmap for v15 and make some usability improvements
Improve usability about variable creation and choice by hiding base wizard base fields and display simplified view Add a description on paramter fields to help the user to use parameters If not parameter are used for the query, display the wizard with the generated file directly
This commit is contained in:
committed by
Sander Lienaerts
parent
94dc7c0887
commit
81fb4080cd
@@ -70,12 +70,10 @@ class SqlFileWizard(models.TransientModel):
|
||||
else:
|
||||
variable_dict[field.name] = self[field.name]
|
||||
if "%(company_id)s" in sql_export.query:
|
||||
company_id = self.env.context.get(
|
||||
"force_company", self.env.user.company_id.id
|
||||
)
|
||||
company_id = self.env.company.id
|
||||
variable_dict["company_id"] = company_id
|
||||
if "%(user_id)s" in sql_export.query:
|
||||
user_id = self.env.context.get("force_user", self._uid)
|
||||
user_id = self.env.user.id
|
||||
variable_dict["user_id"] = user_id
|
||||
|
||||
# Call different method depending on file_type since the logic will be
|
||||
|
||||
Reference in New Issue
Block a user