diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-03-30 14:32:27 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-04-03 08:30:30 +0200 |
| commit | 802339c12d1984d1f29e574378cd8df2471ab098 (patch) | |
| tree | d9a178f2aabfe2b032a32ece2c084d15a885808c /addons/web/static/src/js/fields/field_utils.js | |
| parent | 1fa8f679264b7b93b34991f40faabb25875884ed (diff) | |
[FIX] analytic, hr_timesheet: recompute order
When creating a timesheet, several fields need to be recomputed:
- `currency_id`
- `group_id`
- `department_id`
- `is_timesheet`
- `validated`
When `validated` is computed before the other fields, the recomputation
will lead to an `AccessError` because of the rule
`hr_timesheet.timesheet_line_rule_user`.
Since the test `test_timesheet_validation_user` expects an
`AccessError`, the test succeeds. However, from time to time,
`validated` is computed last => the `AccessError` is not raised.
Actually, a `ValidationError` should be raised in this case (from the
`create` override in `timesheet_grid`).
Diffstat (limited to 'addons/web/static/src/js/fields/field_utils.js')
0 files changed, 0 insertions, 0 deletions
