odoo/openerp
Denis Ledoux a93ef48a70 [FIX] base: access to preferences menu for portal users
Since revs 53582c2ea6 & f65c913027,
this was no more possible for portal users to read groups
on purpose, for privacy reasons.

fields_get of res.users model is overriden, for
the access rights form view features
(The groups selections and checkboxes).
At each call to fields_get, which happens at each call
to fields_view_get on the res.users model, operations are
done on the model res.groups (basically, to
build the selection groups and checkboxes). So,
each time a view of model res.users is displayed,
whatever the view, operations on res.group model were performed.

The thing is, these operations on res.groups
are actually needed only for the user access rights
view, or at least only for users having the group
Administration > Access rights. These group operations
aren't needed for the preferences view, nor for portal users.

We therefore avoid to do these if the user is not part of the
Administration > Access rights group, which lead to
performances improvment, and solves the fact
portal users couldn't access their user preferences view.

opw-627391
2015-03-24 18:25:13 +01:00
..
addons [FIX] base: access to preferences menu for portal users 2015-03-24 18:25:13 +01:00
cli [FIX] When using "--stop-after-init", set the return code correctly. A non zero return code reflect the number of databases that fail to load/update 2014-10-24 16:24:50 +02:00
conf cron cleanup, back to the Kernighan KISS roots 1min poll time, rely only on database, multiprocess/multiserver ready. 2012-12-09 18:04:47 +01:00
modules [FIX] loading: always process auto-installed modules for new databases 2014-09-17 15:11:01 +02:00
osv [FIX] orm: prevent pgerrors from raising `UnicodeDecodeError` 2015-01-12 15:35:23 +01:00
report [FIX] report: line splitting compatible with reportlab > 3.0 2015-01-23 12:54:30 +01:00
service [FIX] over-eager merge b270e4f 2015-01-12 16:45:27 +01:00
tests [FIX] tools.translate: when loading entries from a PO file, use also the POT. 2014-08-13 23:07:40 +02:00
tools [FIX] safe_eval: no shadowing of PostgreSQL's exceptions 2015-01-28 14:34:54 +01:00
workflow [MERGE] From trunk (second time) 2012-12-17 15:47:53 +01:00
.apidoc API doc: move settings file from bin/ to openerp/ 2011-06-23 12:08:07 +03:00
PKG-INFO [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
__init__.py [FIX] timezone: under windows os.environ["TZ"] was not affecting the server, 2013-03-07 13:16:37 +01:00
exceptions.py [FIX] xmlrpc: handle old/new exceptions with old/new clients. 2011-09-30 10:50:12 +02:00
import_xml.rng [IMP] rng: forbid redundant @type for menuitem, now inferred from the action type + minor cleanup 2012-08-22 16:49:46 +02:00
loglevels.py [FIX] incorrect docstrings or docstring param names not matching actual param names 2012-12-14 14:07:58 +01:00
netsvc.py [FIX] add the logging handler only to the root logger. let the loggers propagate to allow more than one handler 2014-03-12 18:18:19 +01:00
pooler.py [IMP] cron: remove useless pooljobs and schedule_cron_jobs methods 2012-12-21 14:37:51 +01:00
release.py [FIX] we are not in alpha anymore 2013-01-03 18:08:09 +01:00
sql_db.py [FIX] sql_db: close db connexions before removing them. 2014-12-21 19:50:56 +01:00