Files
odoo_source/addons/base_import_module/controllers
Xavier Morel e80f1152c7 [ADD] convenience res_users._is_admin
Checks that the provided user (or user in the provided dataset):

* is the superadmin
* or is a member of group_erp_manager

There are a number of hand-rolled "is_admin" checks in the codebase some
of which are fairly gnarly. The shortcut provides a single point of
contact, avoids forgetting about cases (e.g. SUPERUSER_ID) and is
relatively convenient when checking a user which is not the "current"
user.

closes #8146
2015-08-20 09:42:06 +02:00
..
2014-03-19 09:53:43 +01:00
2015-08-20 09:42:06 +02:00