[FIX]res_users : add missing on_change function for res_user simplified view

bzr revid: csn@openerp.com-20130304105817-v3y9d9vupzhuiu2u
This commit is contained in:
Cedric Snauwaert 2013-03-04 11:58:17 +01:00
parent 55e79b4d36
commit 009ea40995
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ class res_users(osv.osv):
}
}
def onchange_state(self, cr, uid, ids, state_id, context=None):
partner_ids = [user.partner_id.id for user in self.browse(cr, uid, ids, context=context)]
return self.pool.get('res.partner').onchange_state(cr, uid, partner_ids, state_id, context=context)
def onchange_type(self, cr, uid, ids, is_company, context=None):
""" Wrapper on the user.partner onchange_type, because some calls to the
partner form view applied to the user may trigger the