Week number differs on monthly calendar

Bug #506483 reported by os33
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Low
OpenERP R&D Web Team

Bug Description

Hello,

For 2010, the number of the first week is 0 instead 1.

So with common settings 'the week start the January 1st' we have a lag.

Thanks

Related branches

os33 (olivier-sommier)
affects: fleetmanager → openobject-server
Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
os33 (olivier-sommier) wrote :

Hello Ferdinand,

Thanks for your answer. The number of the week is correct according to ISO (but not with MSOutlook default settings).

But have a look on the calendar : select December (2009) monthly view.

The last week of the month (included the first days of January) is #52. It's correct.

The week after (from 2010/1/4 to 2010/1/10)is #53 !

Select the January monthly view now. The same weeks are #0 and #1.

It's the first time I saw #0 so I decided to report the bug.

Thanks

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Olivier Sommier,

Is it the issue with OpenERP or OutLook or OpenERP-Outlook plugin?

Please clarify.

Thanks.

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
os33 (olivier-sommier) wrote :

Hello Jay

The issue is with OpenERP : see attached file

summary: - Number of the first week of the year should be 1 instead 0
+ Week number differs on monthly calendar
Changed in openobject-server:
status: Incomplete → Confirmed
affects: openobject-server → openobject-client-web
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello,

Ferdinand, thanks for the link, indeed the computation of the week numbers for 2010 is indeed right, regardless of the way W53/W0 is numbered, W1 of 2010 is the week containing the 4th of January.

However os33 pinpoints indeed an inconsistency, even if not where he indicates: in 2009, all week numbers seem to be off by 1 as compared to ISO8601! 2009-W1 should be the week containing the 5th of January, but in the web client it is W2!
This leads to having the week containing 28/12/2009 labeled as W52 when it should really be W53... and this is where the confusion comes from.
I am attaching an additional screenshot comparing the Web Client calendar of 2009 with the GTK's and Ubuntu's default calendar too.

This indicates that something may be wrong in the computation or display of week numbers in the Web Client, but not in all cases.
Assigning to Web team for investigation

Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Low
Revision history for this message
Chirag Patel (OpenERP) (cpa-openerp) wrote :

Hello,

We have fixed the problem in lp:~openerp-dev/openobject-client-web/improved_calendar
It will be merged soon in trunk (lp:openobject-client-web).
Revision Info: 4154 <email address hidden>

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Committed
milestone: none → 6.0-rc2
Changed in openobject-client-web:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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