diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 0997f851fc..26c8d08bc2 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -1545,7 +1545,10 @@ class TranslationExportResult(ModelView): "Export translation" __name__ = 'ir.translation.export.result' - file = fields.Binary('File', readonly=True) + language = fields.Many2One('ir.lang', 'Language', readonly=True) + module = fields.Many2One('ir.module', 'Module', readonly=True) + file = fields.Binary('File', readonly=True, filename='filename') + filename = fields.Char('Filename') class TranslationExport(Wizard): @@ -1575,7 +1578,10 @@ class TranslationExport(Wizard): cast = self.result.__class__.file.cast self.result.file = False # No need to store it in session return { + 'module': self.start.module.id, + 'language': self.start.language.id, 'file': cast(file_) if file_ else None, + 'filename': '%s.po' % self.start.language.code, } diff --git a/trytond/ir/view/translation_export_result_form.xml b/trytond/ir/view/translation_export_result_form.xml index d3313aebba..8dc8fdd3bd 100644 --- a/trytond/ir/view/translation_export_result_form.xml +++ b/trytond/ir/view/translation_export_result_form.xml @@ -2,6 +2,10 @@