Note that it seems that setting the default department is not necessary, as the on_change on employee_id should be sufficient (see https://bugs.launchpad.net/openobject-client-web/+bug/796246).
Also, IMHO, the on_change method should be named on_change_employee_id and not on_change_department_id, this would be more consistent with what I've seen in other parts of the code. -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/708730 Title: [6.0.1] HR-Timesheets: Field "Department" is not pre-populated Status in OpenERP Modules (addons): Fix Committed Bug description: Hello, When creating a new timesheet, the field "Department" on top right remains empty. I think it should be pre-populated with employee's department that is recorded in employee's data. Maybe I am wrong, but I don't see any functional reason to have other approach... Regards, Bernard To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/708730/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

