[FIX]Fixed the issue of translation on delete title.

bzr revid: msh@tinyerp.com-20120704110009-3vxor2ult19fwie9
This commit is contained in:
msh-openerp
2012-07-04 16:30:09 +05:30
parent 997e1e54dd
commit 35bbe77d88
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -815,6 +815,7 @@ openerp.web.form.SidebarAttachments = openerp.web.OldWidget.extend({
},
on_attachments_loaded: function(attachments) {
this.attachments = attachments;
this.delete_help = _t("Delete the attachment")
this.$div.html(QWeb.render('FormView.sidebar.attachments', this));
this.$element.find('.oe-binary-file').change(this.on_attachment_changed);
this.$element.find('.oe-sidebar-attachment-delete').click(this.on_attachment_delete);
+1 -1
View File
@@ -786,7 +786,7 @@
<a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
<t t-esc="attachment.name"/>
</a>
<a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
<a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="#{delete_help} #{attachment.name}">
<img t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
</a>
</li>