[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:
parent
b34bb11b2d
commit
0503a5cf5e
|
@ -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 () {
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue