summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-03-16 16:16:44 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-03-19 09:37:27 +0100
commit623f2baf9d902349ad25a3139cd3f93cae9ddb95 (patch)
treea99c7ab6b16792e7703e48cfa58820cb6ca9543d /addons/web/static/src/js/fields/basic_fields.js
parent4fd4816d493663ede98211ff3d0250026d155fa7 (diff)
[FIX] hr_timesheet: change department
- Set an employee in a department A - Create some timesheet entries for this employee, validate them - Change the employee to department B An error arise: > You cannot modify an entry in a confirmed timesheet. The field `department_id` on the `account.analytic.line` is a related on `user.employee_ids.department_id`. By changing the department on the employee, it changes the department on the analytic line (= timesheet). There is no real need of a related field. Actually, it makes more sense to change the department with the user (e.g. at creation or change of the user), and then do not change it later on. Indeed, a timesheet entry that was created when the employee was in department A should remain in department A even if the employee change of department. opw-1824913
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions