Odoo Help

1

Is there an issue with drag in calendar view when date_deadline is first_day_of_week?

By
René Schuster
on 9/24/14, 4:47 AM 897 views

I have recently trouble with the calendar view. When dragging a new event from one date to another date, I sometimes get wrong behaviour. The problem only occurs, when date_deadline is first_day_of_week, and only, when dragging (click on calendar works for every day).

I first thought, there might be something wrong with my custom code, but after some investigation I found out, that this issue happens in default modules aswell, e.g. the crm.meetings calendar view or the hr.holidays holiday request calendar view.

The detailed behaviour when dragging from any date to a monday:
The end_date gets set to the start_date and it operates like I only clicked on the start_date.

Is there a bug? Any further information on this subject?

UPDATE:

The behaviour only occurs, when first day of week is monday, e.g. when users language is german. For first_dow = sunday (language english) everything works fine.

UPDATE:

Recently the language and thus the first_day_of_week don't play a part anymore...

Wrong behaviour occurs always.

I've reproduced the fault with a freshly set up server as well as with a running production server.

Also tried Firefox 33.1 and Internet Explorer 11.0

Finally I have tried to use the latest dhtmlxScheduler, but this didn't help either.

 

Thanks.

1

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 11/14/14, 8:11 AM

This is odd. A good find though, worth posting on the bugs list of github (www.github.com/odoo).

My guess is that it has something to do with the python calendar used. We have encountered a similair bug using the WeekOfYear functionality in sequences, which was off by 1 week due to wrong calendar usage.

Have you been able to reproduce the phenomenon described in my answer?

René Schuster
on 11/19/14, 10:21 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/24/14, 4:47 AM
Seen: 897 times
Last updated: 3/16/15, 8:10 AM