diff options
| author | Raphael Collet <rco@openerp.com> | 2012-10-08 17:11:31 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2012-10-08 17:11:31 +0200 |
| commit | a1922458f5eeafd67cf364dca2c003c4bc63c7ae (patch) | |
| tree | 17927140250fbfb945a019a8a8bb0af6a989befb /addons | |
| parent | cf35464125f0625100bd52111268534c116f3873 (diff) | |
[FIX] mail: in record rule, use partner id in mail_follower_ids instead of user id
bzr revid: rco@openerp.com-20121008151131-wi86wmjqxo44c7sq
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index b503565bd11..be3bb667628 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -7,7 +7,7 @@ <field name="name">Mail.group: access only public and joined groups</field> <field name="model_id" ref="model_mail_group"/> <!-- This rule has to be improved for employee only groups --> - <field name="domain_force">['|', '|', ('public', '=', 'public'), ('message_follower_ids', 'in', [user.id]), '&', ('public','=','groups'), ('group_public_id','in', [x.id for x in user.groups_id])]</field> + <field name="domain_force">['|', '|', ('public', '=', 'public'), ('message_follower_ids', 'in', [user.partner_id.id]), '&', ('public','=','groups'), ('group_public_id','in', [g.id for g in user.groups_id])]</field> </record> <!-- |
