Skip to content

Commit

Permalink
[FIX] base: export PO template files as pot
Browse files Browse the repository at this point in the history
was already done when exporting to tgz, but not for po
  • Loading branch information
xmo-odoo authored and rco-odoo committed Dec 2, 2014
1 parent f321410 commit f164c44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openerp/addons/base/module/wizard/base_export_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ def act_getfile(self, cr, uid, ids, context=None):
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',
Expand Down

0 comments on commit f164c44

Please sign in to comment.