[FIX] calendar: avoid double 'Attendees' field in search view
authorMartin Trigaux <mat@openerp.com>
Mon, 4 Aug 2014 15:52:02 +0000 (17:52 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 4 Aug 2014 15:52:02 +0000 (17:52 +0200)
The partner_ids fields represents attendees but it's confusing to have twice the same field in search view (opw 607275)

addons/calendar/calendar.py
addons/calendar/calendar_view.xml

index d66b7f7..a34916a 100644 (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"),
 
     }
index 7e1b6a5..d733b5d 100644 (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}"