mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] sql_export: black, isort, prettier
This commit is contained in:
committed by
David Beal
parent
d31d52b8f7
commit
c5ac0eb477
@@ -16,7 +16,7 @@ class SqlFileWizard(models.TransientModel):
|
||||
_description = "Allow the user to save the file with sql request's data"
|
||||
|
||||
binary_file = fields.Binary("File", readonly=True)
|
||||
file_name = fields.Char("File Name", readonly=True)
|
||||
file_name = fields.Char(readonly=True)
|
||||
sql_export_id = fields.Many2one(comodel_name="sql.export", required=True)
|
||||
|
||||
@api.model
|
||||
|
||||
@@ -1,42 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="sql_file_wizard_view_form" model="ir.ui.view">
|
||||
<field name="name">sql.file.wizard.view.form</field>
|
||||
<field name="model">sql.file.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Csv File">
|
||||
<separator
|
||||
string="variables_placeholder"
|
||||
colspan="4"
|
||||
invisible="1"
|
||||
/>
|
||||
string="variables_placeholder"
|
||||
colspan="4"
|
||||
invisible="1"
|
||||
/>
|
||||
<separator
|
||||
string="Export file"
|
||||
colspan="4"
|
||||
attrs="{'invisible': [('binary_file', '=', False)]}"
|
||||
/>
|
||||
string="Export file"
|
||||
colspan="4"
|
||||
attrs="{'invisible': [('binary_file', '=', False)]}"
|
||||
/>
|
||||
<field name="binary_file" filename="file_name" />
|
||||
<field name="file_name" invisible="1" />
|
||||
<footer>
|
||||
<button
|
||||
name="export_sql"
|
||||
string="Export"
|
||||
type="object"
|
||||
icon="fa-download"
|
||||
/>
|
||||
name="export_sql"
|
||||
string="Export"
|
||||
type="object"
|
||||
icon="fa-download"
|
||||
/>
|
||||
or
|
||||
<button
|
||||
special="cancel"
|
||||
string="Cancel"
|
||||
type="object"
|
||||
icon="fa-times"
|
||||
/>
|
||||
special="cancel"
|
||||
string="Cancel"
|
||||
type="object"
|
||||
icon="fa-times"
|
||||
/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user