bzr revid: mra@mra-laptop-20100812041718-9bxj8u8xajbe1w1t
This commit is contained in:
Mustufa Rangwala 2010-08-12 09:47:18 +05:30
parent dbdec40cdb
commit 6b88aa8a57
2 changed files with 4 additions and 8 deletions

View File

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import os
from osv import fields, osv
@ -176,5 +177,4 @@ class hr_department(osv.osv):
hr_department()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -23,7 +23,6 @@ from osv import fields,osv
import tools
class hr_department(osv.osv):
def name_get(self, cr, uid, ids, context=None):
if context is None:
context = {}
@ -52,15 +51,13 @@ class hr_department(osv.osv):
'parent_id': fields.many2one('hr.department', 'Parent Department', select=True),
'child_ids': fields.one2many('hr.department', 'parent_id', 'Child Departments'),
'note': fields.text('Note'),
# 'manager_id': fields.many2one('res.users', 'Manager'),
# 'member_ids': fields.many2many('res.users', 'hr_department_user_rel', 'department_id', 'user_id', 'Members'),
}
_defaults = {
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr.department', context=c),
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr.department', context=c),
}
def _get_members(self,cr, uid, context=None):
def _get_members(self, cr, uid, context=None):
if context is None:
context = {}
mids = self.search(cr, uid, [('manager_id', '=', uid)], context=context)
@ -88,7 +85,6 @@ class hr_department(osv.osv):
hr_department()
class ir_action_window(osv.osv):
_inherit = 'ir.actions.act_window'