[FIX] website_hr: img method for hr.employee to display picture for public user

bzr revid: chm@openerp.com-20131105160617-wqdz3xg7bb1que8k
This commit is contained in:
Christophe Matthieu 2013-11-05 17:06:17 +01:00
parent b34bb11b2d
commit 0503a5cf5e
2 changed files with 2 additions and 1 deletions

View File

@ -156,6 +156,7 @@
}).fail(function (err, data) {
website.error(data, '/web#model='+$a.data('object')+'&id='+$a.data('id'));
});
return false;
});
$(document).on('click', '.js_publish_management .js_publish_btn', function () {

View File

@ -11,4 +11,4 @@ class hr(osv.osv):
}
def img(self, cr, uid, ids, field='image_small', context=None):
return "/web/binary/image?model=%s&field=%s&id=%s" % (self._name, field, ids[0])
return "/website/image?model=%s&field=%s&id=%s" % (self._name, field, ids[0])