[IMP] add support of variables in queries

[FIX] encoding with mogrify

[FIX] hide placeholder
This commit is contained in:
Benoit
2016-05-23 14:39:41 +02:00
committed by Sander Lienaerts
parent 35ed6c594b
commit 7d7b02a55f
5 changed files with 163 additions and 40 deletions

View File

@@ -7,8 +7,20 @@
<field name="model">sql.file.wizard</field>
<field name="arch" type="xml">
<form string="Csv File">
<field name="binary_file" filename="file_name"/>
<field name="file_name" invisible="1"/>
<separator string="Warning untested export" attrs="{'invisible': [('valid', '=', True)]}"/>
<separator string="variables_placeholder" colspan="4" invisible="1"/>
<separator string="Export file" colspan="4"
attrs="{'invisible': [('binary_file', '=', False)]}"/>
<field name="valid" invisible="1"/>
<field name="binary_file" filename="file_name"/>
<field name="file_name" invisible="1"/>
<footer>
<button name="export_sql" string="Export" type="object"
icon="gtk-apply" />
or
<button special="cancel" string="Cancel" type="object"
icon="gtk-cancel" />
</footer>
</form>
</field>
</record>