[CLEAN] event: light cleaning.
bzr revid: tde@openerp.com-20130412125146-ec2moex2e802skrz
This commit is contained in:
parent
57b6496bcb
commit
9cc33004f6
|
@ -174,7 +174,6 @@ class event_event(osv.osv):
|
|||
return res
|
||||
|
||||
def _get_visibility_selection(self, cr, uid, context=None):
|
||||
""" Overriden in project_issue to offer more options """
|
||||
return [('public', 'All Users'),
|
||||
('employees', 'Employees Only')]
|
||||
# Lambda indirection method to avoid passing a copy of the overridable method when declaring the field
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<openerp>
|
||||
<data noupdate="1">
|
||||
|
||||
<record model="ir.rule" id="event_portal_rule">
|
||||
<record model="ir.rule" id="event_event_portal_anonymous_rule">
|
||||
<field name="name">Event: portal and anonymous users: public only</field>
|
||||
<field name="model_id" ref="event.model_event_event"/>
|
||||
<field name="domain_force">['|',
|
||||
|
@ -13,7 +13,7 @@
|
|||
<field name="groups" eval="[(4, ref('portal.group_portal')), (4, ref('portal.group_anonymous'))]"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.rule" id="event_registration_portal_rule">
|
||||
<record model="ir.rule" id="event_registration_portal_anonymous_rule">
|
||||
<field name="name">Event/Registration: portal and anonymous users: personal only</field>
|
||||
<field name="model_id" ref="event.model_event_registration"/>
|
||||
<field name="domain_force">[('user_id', '=', user.id)]</field>
|
||||
|
|
Loading…
Reference in New Issue