diff --git a/addons/portal_claim/portal_claim.py b/addons/portal_claim/portal_claim.py index d7c9c1af6ca..7eb30888d2a 100644 --- a/addons/portal_claim/portal_claim.py +++ b/addons/portal_claim/portal_claim.py @@ -29,7 +29,7 @@ class crm_claim(base_stage, osv.osv): def default_get(self, cr, uid, fields, context=None): res = super(crm_claim, self).default_get(cr, uid, fields, context=context) - if isinstance(res.get('partner_id'), (int, long)): + if type(res.get('partner_id')) in (int, long): # Special case for portal users, as they are not allowed to call name_get on res.partner # We save this call for the web client by returning it in default get res['partner_id'] = self.pool['res.partner'].name_get(