[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 Sylvain LE GAL
parent 5fabbb4330
commit bf2ab7c7f7
5 changed files with 163 additions and 40 deletions

View File

@@ -40,6 +40,8 @@ class TestExportSqlQuery(TransactionCase):
def test_sql_query(self):
test = self.sql_model.export_sql_query(
self.cr, self.uid, [self.query_id])
self.registry('sql.file.wizard').export_sql(
self.cr, self.uid, test['res_id'])
wizard = self.registry('sql.file.wizard').browse(
self.cr, self.uid, test['res_id'])
export = base64.b64decode(wizard.binary_file)