mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP]encode output file
This commit is contained in:
committed by
Sander Lienaerts
parent
96ed1f9d7d
commit
ff0900ca7b
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user