[FIX] hr: try to create an employee as employee -> bug

lp bug: https://launchpad.net/bugs/713177 fixed

bzr revid: mra@mra-laptop-20110208051951-usjzx6dih5ap9o45
This commit is contained in:
Mustufa Rangwala 2011-02-08 10:49:51 +05:30
parent 4db0767016
commit b18aa2ecef
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class hr_employee(osv.osv):
_defaults = {
'active': 1,
'photo': _get_photo,
'address_id': lambda self,cr,uid,c: self.pool.get('res.partner.address').browse(cr, uid, uid, c).partner_id.id
'address_id': lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, uid, c).address_id.id
}
def _check_recursion(self, cr, uid, ids, context=None):