[FIX] calendar: avoid double 'Attendees' field in search view

The partner_ids fields represents attendees but it's confusing to have twice the same field in search view (opw 607275)
This commit is contained in:
Martin Trigaux 2014-08-04 17:52:02 +02:00
parent 8c0c74300f
commit 29d16f756c
2 changed files with 2 additions and 2 deletions

View File

@ -851,7 +851,7 @@ class calendar_event(osv.Model):
'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the event alarm information without removing it."),
'categ_ids': fields.many2many('calendar.event.type', 'meeting_category_rel', 'event_id', 'type_id', 'Tags'),
'attendee_ids': fields.one2many('calendar.attendee', 'event_id', 'Attendees', ondelete='cascade'),
'partner_ids': fields.many2many('res.partner', string='Attendees', states={'done': [('readonly', True)]}),
'partner_ids': fields.many2many('res.partner', string='Invitations', states={'done': [('readonly', True)]}),
'alarm_ids': fields.many2many('calendar.alarm', string='Reminders', ondelete="restrict"),
}

View File

@ -41,7 +41,7 @@
<h1>
<field name="name"/>
</h1>
<label for="partner_ids" class="oe_edit_only"/>
<label for="partner_ids" string="Attendees" class="oe_edit_only"/>
<h2>
<field name="partner_ids" widget="many2manyattendee"
context="{'force_email':True}"