hr.schedule on_change date_start

Bug #1267221 reported by Mustafa Rawi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Human Resources - Next Generation for OpenERP
New
Undecided
Unassigned

Bug Description

In hr.schedule form, the field date_start has on_change value to update description (name) field. Selecting or typing in the field, updates description and clears date_start.

----------------------------------------
Update:
Looking through the code, I found the reason for this behavior. The onchange tries to make sure the selected start date is a Monday. Any other value returns false and clears the field.

For internationlization purposes, I suggest either to remove this constraint or allow setting 1st day of the week. Oman's week starts on Saturday and Egypt's starts on Sunday, just to name a few.

in hr_sechdule.py @ line 240:
            # The schedule must start on a Monday
            if dStart.weekday() != 0:
                res['value']['date_start'] = False
                res['value']['date_end'] = False

Mustafa Rawi (mrawi2)
description: updated
description: updated
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.