2013-07-31 13:54:34 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from openerp.osv import osv, fields
|
|
|
|
|
|
|
|
|
|
|
|
class hr(osv.osv):
|
|
|
|
_inherit = 'hr.employee'
|
|
|
|
_columns = {
|
2013-08-02 03:54:34 +00:00
|
|
|
'website_published': fields.boolean('Available in the website'),
|
2013-09-29 18:28:13 +00:00
|
|
|
'public_info': fields.text('Public Info'),
|
2013-07-31 13:54:34 +00:00
|
|
|
}
|
|
|
|
|
2013-08-14 13:57:41 +00:00
|
|
|
def img(self, cr, uid, ids, field='image_small', context=None):
|
2013-09-29 21:24:31 +00:00
|
|
|
return "/web/binary/image?model=%s&field=%s&id=%s" % (self._name, field, ids[0])
|