Removed old code
bzr revid: fp@tinyerp.com-276b9c67b1b438b68c4f2c403842bab64d801bc3
This commit is contained in:
parent
7f462a3b63
commit
866bea218c
|
@ -29,25 +29,6 @@
|
||||||
from osv import fields,osv
|
from osv import fields,osv
|
||||||
import tools
|
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):
|
class hr_department(osv.osv):
|
||||||
_name = "hr.department"
|
_name = "hr.department"
|
||||||
_columns = {
|
_columns = {
|
||||||
|
|
Loading…
Reference in New Issue