In this case, could you use the has_group method of the res.users object.

```python

user_proxy = self.pool.get('res.users')
in_group = user_proxy.browse(cr, uid, uid, context=context).has_group('account.view_account_configuration_installer')

if in_group:
   # do something
```