[Trunk/7.0] calendar view doesn't update time

Bug #1148149 reported by Ignas Karpiejus @ hbee
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
In Progress
Medium
OpenERP R&D Addons Team 1
7.0
Fix Committed
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Hello all,

it seems when creating a task it gets some default values in calendar view as 20:00 - 21:00 time, I can't find from where it gets those in task, aren't there supposed to be some fields in task object for this? Also it doesn't save changes if I drag task through the days times , changing the view to tree and to calendar view again resets values to 20:00 - 21:00 again, seems like it doesn't have somewhere to save it, I haven't looked very deep for this, but seems as a bug. Using - openerp-7.0-20130305-002149, only default project module installed with it's requirements.

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Ignas,

Yes, I have faced the same problem when resets time from "days times". and same problem for Opportunities also.

Thanks!

summary: - Task calendar view doesn't update time
+ [Trunk/7.0] calendar view doesn't update time
Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Revision history for this message
Amit Parik (amit-parik) wrote :

Problem only exist on project task view, Its fine with meeting view.

Thank you!

Changed in openobject-addons:
status: Confirmed → In Progress
tags: added: maintenance
Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello,

I traced the code of web-client and found that its an issue from web-client whenever field type is date web-client by default makes it datetime with hours=9, so and while displaying this datetime value it is converted to browser's timezone so if you are in timezone of UTC+5:30 then for each and every event displayed with 14:30 hours.

@Pankti: I don't think we should fix it from addons

@Amit Parik: The issue is available everywhere where field in date_start is type of date.

Hope this will help to fix the issue.

Thanks.

Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello,

Let me explain why this issue occurring.

It is because calendar view is implmeneted on field type date, logically there is no meaning to use date type field on calendar view because calendar view shows Day and Week mode which shows event on time baed values, so calendar view should be implemented on datetime field but even if develper implemented on date field so we have handled that scenario also, calendar creates event from 9:00 to 17:00 for field type date, but the only issue after this is after adding 9:00 and 17:00 hours to date_Start and date_deadline it convertes that date in to local timezone say for example you are in timezone UTC+5:30 so it is converted to 14:30, which is abnormal behaviour, I have one scenario where this thing make major issue.
If I am in timezone UTC+11(say for example region of USA Samoa), now I create event so 9:00 - 11:00 hours that is 22:00 PM of previous day, so event is created with 22:00 to 6:00 AM of next day(8:00 hour's event) so event is created for 2 days which is wrong.

The behavior should be same for any timezone, event should be displayed on 9:00 AM on any timezone when it is based on date field, from web-client only issue is that it converts time into local timezone which is fixed in following branch.

lp:~openerp-dev/openerp-web/7.0-opw-590098-msh

Thanks.

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.