summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-09-24 18:26:45 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-09-24 18:26:45 +0200
commit1fbb4a5c16232c6130b31d870be4e44ecc743a72 (patch)
tree13a66f5152fb52efb4c3172e167f450577fd5ccf /addons/document/document.py
parent306accf7d13040e69a5d880d00d57769993770a2 (diff)
[IMP] handling of '(copy)' l10n
bzr revid: abo@openerp.com-20120924162645-z1h4l2mj6c8i6wr3
Diffstat (limited to 'addons/document/document.py')
-rw-r--r--addons/document/document.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/document.py b/addons/document/document.py
index 3ee52f8e4fb..cb30e5f93c9 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -209,7 +209,7 @@ class document_file(osv.osv):
default = {}
if 'name' not in default:
name = self.read(cr, uid, [id], ['name'])[0]['name']
- default.update({'name': name + " " + _("(copy)")})
+ default.update(name=_("%s (copy)") % (name))
return super(document_file, self).copy(cr, uid, id, default, context=context)
def write(self, cr, uid, ids, vals, context=None):