hr.schedule on_change date_start
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:
description: | updated |
description: | updated |