diff options
| author | Olivier Dony <odo@openerp.com> | 2014-08-07 12:50:13 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-08-07 18:03:08 +0200 |
| commit | 2bbff57691a33a02ca6a85a600f0b32035daa2a4 (patch) | |
| tree | 4f63d073b9cf79613405a529d229d6ed6ec88bad /addons/mail/res_users.py | |
| parent | 935c4766641b5076baa08158b0cf8d6fc6e432e1 (diff) | |
[IMP] hr,mail,product,project,base: use @auto_join=True on _inherits FK field
This can give a performance boost on large databases
and should not be a concern in terms of access control
as the inheritance already grants access to the parent
records.
Diffstat (limited to 'addons/mail/res_users.py')
| -rw-r--r-- | addons/mail/res_users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/res_users.py b/addons/mail/res_users.py index 097893ae601..eedc04603f0 100644 --- a/addons/mail/res_users.py +++ b/addons/mail/res_users.py @@ -40,7 +40,7 @@ class res_users(osv.Model): _columns = { 'alias_id': fields.many2one('mail.alias', 'Alias', ondelete="restrict", required=True, help="Email address internally associated with this user. Incoming "\ - "emails will appear in the user's notifications.", copy=False), + "emails will appear in the user's notifications.", copy=False, auto_join=True), 'display_groups_suggestions': fields.boolean("Display Groups Suggestions"), } |
