[IMP]encode output file

This commit is contained in:
aheficent
2017-03-14 10:55:51 +01:00
committed by David Beal
parent 063b9df4cc
commit 1883be6e19
3 changed files with 11 additions and 1 deletions

View File

@@ -45,6 +45,14 @@ class SqlExport(models.Model):
'Parameters',
domain=[('model', '=', 'sql.file.wizard')])
encoding = fields.Selection(
[('utf-8', 'utf-8'), ('utf-16', 'utf-16'),
('windows-1252', 'windows-1252'), ('latin1', 'latin1'),
('latin2', 'latin2'), ('big5', 'big5'), ('gb18030', 'gb18030'),
('shift_jis', 'shift_jis'), ('windows-1251', 'windows-1251'),
('koir8_r', 'koir8_r')], string='Encoding', required=True,
default='utf-8')
@api.multi
def export_sql_query(self):
self.ensure_one()