event module - form - date in event name is shown without time zone

Bug #1095862 reported by hivam
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 1

Bug Description

OpenERP 7.0 thrunk version 7.0alpha-20130103-000101

In the attached picture you can see an event starting on January 3, 2013 at 20 hours and end time at 24 hours.

However, in the name of the event can be seen that concatenates the name and the date January 4, 2013.

My config time-zone: América-Bogotá (GMT - 5:00 )

The function name_get is:

def name_get(self, cr, uid, ids, context=None):
        if not ids:
            return []

        if isinstance(ids, (long, int)):
            ids = [ids]

        res = []
        for record in self.browse(cr, uid, ids, context=context):
            date = record.date_begin.split(" ")[0]
            date_end = record.date_end.split(" ")[0]
            if date != date_end:
                date += ' - ' + date_end
            display_name = record.name + ' (' + date + ')'
            res.append((record['id'], display_name))
        return res

Revision history for this message
hivam (quipus-total) wrote :
hivam (quipus-total)
description: updated
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.