[FIX] calendar: type of related field should be 'integer', not 'int'
authorRaphael Collet <rco@openerp.com>
Mon, 20 Jan 2014 11:49:01 +0000 (12:49 +0100)
committerRaphael Collet <rco@openerp.com>
Mon, 20 Jan 2014 11:49:01 +0000 (12:49 +0100)
bzr revid: rco@openerp.com-20140120114901-ryrqgu0drewsjx4y

addons/calendar/calendar.py

index 38f4e30..aede775 100644 (file)
@@ -831,7 +831,7 @@ class calendar_event(osv.Model):
         'end_date': fields.date('Repeat Until'),
         'allday': fields.boolean('All Day', states={'done': [('readonly', True)]}),
         'user_id': fields.many2one('res.users', 'Responsible', states={'done': [('readonly', True)]}),
-        'color_partner_id': fields.related('user_id', 'partner_id', 'id', type="int", string="colorize", store=False),  # Color of creator
+        'color_partner_id': fields.related('user_id', 'partner_id', 'id', type="integer", string="colorize", store=False),  # Color of creator
         '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'),