[FIX] base: export PO template files as pot

was already done when exporting to tgz, but not for po
This commit is contained in:
Xavier Morel 2014-10-10 13:50:59 +02:00 committed by Raphael Collet
parent f32141017b
commit f164c44ae2
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ class base_language_export(osv.osv_memory):
filename = get_iso_codes(lang)
elif len(mods) == 1:
filename = mods[0]
name = "%s.%s" % (filename, this.format)
extension = this.format
if not lang and extension == 'po':
extension = 'pot'
name = "%s.%s" % (filename, extension)
this.write({ 'state': 'get', 'data': out, 'name': name })
return {
'type': 'ir.actions.act_window',