[FIX] Fix sidebar attachment deletion

bzr revid: fme@openerp.com-20111220104327-1zif2g20625mtcdc
This commit is contained in:
Fabien Meghazi 2011-12-20 11:43:27 +01:00
parent 19a9a1d595
commit a26f4b1de7
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ openerp.web.form.SidebarAttachments = openerp.web.Widget.extend({
on_attachment_delete: function(e) {
var self = this, $e = $(e.currentTarget);
var name = _.str.trim($e.parent().find('a.oe-sidebar-attachments-link').text());
if (confirm(_.sprintf(_t("Do you really want to delete the attachment %s?"), name))) {
if (confirm(_.str.sprintf(_t("Do you really want to delete the attachment %s?"), name))) {
this.rpc('/web/dataset/unlink', {
model: 'ir.attachment',
ids: [parseInt($e.attr('data-id'))]