[ADD] record rule to hide private events

bzr revid: abo@openerp.com-20120727154727-m7f0urztszju678q
This commit is contained in:
Antonin Bourguignon 2012-07-27 17:47:27 +02:00
parent ffb10a71f6
commit 0919b90c45
1 changed files with 2 additions and 3 deletions

View File

@ -2,11 +2,10 @@
<openerp>
<data noupdate="1">
<!-- Add a 'public' flag to the events and only show these ones to portal users -->
<record id="portal_event_rule" model="ir.rule">
<field name="name">Personal Events</field>
<field name="name">Visible Events</field>
<field ref="event.model_event_event" name="model_id"/>
<field name="domain_force">[]</field>
<field name="domain_force">[('visibility', '=', 'public')]</field>
<field name="groups" eval="[(4, ref('portal.group_portal_member'))]"/>
</record>