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:
Florian da Costa
2021-05-20 17:05:28 +02:00
committed by Sander Lienaerts
parent 94dc7c0887
commit 81fb4080cd
4 changed files with 59 additions and 21 deletions

View File

@@ -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