Removed old code

bzr revid: fp@tinyerp.com-276b9c67b1b438b68c4f2c403842bab64d801bc3
This commit is contained in:
Fabien Pinckaers 2007-06-26 04:06:22 +00:00
parent 7f462a3b63
commit 866bea218c
1 changed files with 0 additions and 19 deletions

View File

@ -29,25 +29,6 @@
from osv import fields,osv
import tools
#class res_users(osv.osv):
# _inherit = "res.users"
# def _compute_manager_ids(self, cr, uid, ids, name, args, context):
# res = {}
# for id in ids:
# cr.execute("""SELECT
# distinct manager_id
# from
# hr_department
# where
# id in (select department_id from hr_department_user_rel where user_id=%d)""", (id,))
# res[id] = map(lambda x: x[0], cr.fetchall() or []) + [id]
# return res
#
# _columns = {
# 'manager_ids': fields.function(_compute_manager_ids, method=True, string='Members', type="many2many", relation="res.users"),
# }
#res_users()
class hr_department(osv.osv):
_name = "hr.department"
_columns = {