[IMP] models: inherited fields are related fields read as the current user
authorRaphael Collet <rco@openerp.com>
Tue, 2 Sep 2014 08:50:52 +0000 (10:50 +0200)
committerRaphael Collet <rco@openerp.com>
Thu, 4 Sep 2014 14:10:48 +0000 (16:10 +0200)
commit68777c5860cadafd939751269d4820e4c014ec98
treec5b69258a5ac7305ecbf3bf232489d525d5786c6
parentd6f375df61b91761d92c0448572178a93ce74ca7
[IMP] models: inherited fields are related fields read as the current user

Add an attribute 'related_sudo' (True by default) for related fields.
A related field is computed as superuser if related_sudo is True.

Add explicit related fields 'name' and 'email' on 'res.users', as these should
be readable by the public user with module website_forum.
openerp/addons/base/res/res_users.py
openerp/fields.py
openerp/models.py