[ADD] sql_export: Allow keeping generated file

This commit is contained in:
Holger Brunn
2024-04-27 14:34:00 +02:00
parent 3e136a0fd5
commit 5811a07488
4 changed files with 50 additions and 0 deletions

View File

@@ -41,6 +41,10 @@ class SqlExport(models.Model):
default="utf-8",
)
keep_generated_file = fields.Boolean(
help="Check this to keep generated export files as attachments"
)
def _compute_use_properties(self):
for rec in self:
rec.use_properties = bool(rec.query_properties_definition)