Kishan Gajjar
c1f04bef83
[IMP] hr_timesheet: make it easier to encode timesheets
...
In this commit, we do two small changes to make it easier to encode
timesheets. The main issue is that we want to solve the following
situation: a user clicks on a cell in a timesheet grid view to open a
list view, then clicks on 'Create' to create a new timesheet. This will
open a form view, but some fields which could be prefilled are not
filled.
- do not reset task_id in some cases. This is important for the onchange
call which comes after a default_get, when there is a default project
value set.
- do not set employee_id if there is default_employee_id in context
This is useful when we open timesheets from the 'All Timesheets'
menu item, then add a new line, select a different employee, and open it
in the grid view (by clicking on the + icon from a cell). This opens a
list view, which is editable, but when we create a new entry, it ignores
the employee value.
Note: a commit in enterprise adds support for properly passing contexts
in grid view, see
https://github.com/odoo/enterprise/commit/f23003917f18b52bb69483cdaac3cb2164230aa6
Task: #35414
2018-05-11 16:19:26 +02:00
..
2018-05-05 08:56:30 +02:00
2018-04-20 11:22:41 +02:00
2018-04-27 17:16:03 +02:00
2018-04-27 14:02:05 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-23 19:36:25 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 07:03:20 +02:00
2018-04-15 04:12:33 +02:00
2018-04-20 11:22:41 +02:00
2018-04-27 17:16:03 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 00:28:35 +02:00
2018-04-15 04:12:33 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 04:11:42 +02:00
2018-05-04 18:07:31 +02:00
2018-04-22 04:11:42 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-05-07 13:31:45 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-17 16:24:27 +02:00
2018-04-25 15:09:35 +02:00
2018-04-23 18:15:25 +02:00
2018-04-22 00:28:35 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-19 10:59:24 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 04:11:42 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 07:03:20 +02:00
2018-05-07 10:58:54 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 07:03:20 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 00:28:35 +02:00
2018-04-24 17:42:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 00:28:35 +02:00
2018-04-20 11:22:41 +02:00
2018-05-07 10:11:58 +02:00
2018-04-22 04:11:42 +02:00
2018-04-20 11:22:41 +02:00
2018-04-15 04:12:33 +02:00
2018-04-22 04:11:42 +02:00
2018-04-22 04:11:42 +02:00
2018-05-11 11:55:05 +02:00
2018-05-04 13:17:25 +02:00
2018-04-26 15:13:38 +02:00
2018-05-07 10:11:58 +02:00
2018-04-26 15:13:38 +02:00
2018-04-15 04:12:33 +02:00
2018-04-22 04:11:42 +02:00
2018-04-26 15:13:38 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 04:11:42 +02:00
2018-05-04 09:47:00 +02:00
2018-05-04 09:59:52 +02:00
2018-05-07 10:58:54 +02:00
2018-04-22 04:11:42 +02:00
2018-05-11 16:19:26 +02:00
2018-04-22 07:03:20 +02:00
2018-04-18 15:59:03 +02:00
2018-04-09 09:26:59 +02:00
2018-04-09 09:26:59 +02:00
2018-04-09 09:26:59 +02:00
2018-04-09 09:26:59 +02:00
2018-04-09 09:26:59 +02:00
2018-04-23 19:36:25 +02:00
2018-04-30 09:50:33 +02:00
2018-03-26 13:36:33 +02:00
2018-05-07 10:11:58 +02:00
2018-05-04 09:44:22 +02:00
2018-04-26 15:13:38 +02:00
2018-04-01 02:39:07 +02:00
2018-04-06 15:36:10 +02:00
2018-04-18 15:59:15 +02:00
2018-03-14 16:05:09 +01:00
2018-04-16 18:34:56 +02:00
2018-04-01 02:39:07 +02:00
2018-03-29 18:15:38 +02:00
2018-03-13 12:05:36 +01:00
2018-04-06 15:36:10 +02:00
2018-03-28 13:45:47 +02:00
2018-03-09 16:25:58 +01:00
2018-04-01 02:39:07 +02:00
2018-03-16 15:20:16 +01:00
2018-04-15 00:29:26 +02:00
2018-04-23 19:36:25 +02:00
2018-03-15 08:50:38 +01:00
2018-03-16 16:52:06 +01:00
2018-04-22 07:03:20 +02:00
2018-04-26 15:13:38 +02:00
2018-05-08 15:26:06 +02:00
2018-04-26 15:13:38 +02:00
2018-05-02 11:42:24 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-05-11 11:50:47 +02:00
2018-04-26 15:13:38 +02:00
2018-04-18 10:31:02 +02:00
2018-04-20 11:22:41 +02:00
2018-04-24 17:42:41 +02:00
2018-04-15 04:12:33 +02:00
2018-05-11 14:36:57 +02:00
2018-04-22 07:03:20 +02:00
2018-04-24 17:42:41 +02:00
2018-04-22 07:03:20 +02:00
2018-04-22 07:03:20 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 07:03:20 +02:00
2018-04-22 07:03:20 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 07:03:20 +02:00
2018-04-23 18:15:25 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 07:03:20 +02:00
2018-04-26 15:13:38 +02:00
2018-04-24 17:42:41 +02:00
2018-04-22 07:03:20 +02:00
2018-04-15 04:12:33 +02:00
2018-04-22 07:03:20 +02:00
2018-04-24 17:42:41 +02:00
2018-04-15 04:12:33 +02:00
2018-04-24 17:42:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-15 04:12:33 +02:00
2018-04-26 15:13:38 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 04:11:42 +02:00
2018-04-22 00:28:35 +02:00
2018-05-11 11:43:00 +02:00
2018-04-20 11:22:41 +02:00
2018-04-30 17:19:38 +02:00
2018-04-15 04:12:33 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 04:11:42 +02:00
2018-05-08 13:24:47 +02:00
2018-04-22 04:11:42 +02:00
2018-04-22 04:11:42 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 04:11:42 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-15 04:12:33 +02:00
2018-04-30 17:41:53 +02:00
2018-04-24 17:42:41 +02:00
2018-04-30 17:41:53 +02:00
2018-04-22 04:11:42 +02:00
2018-04-26 15:13:38 +02:00
2018-04-20 11:22:41 +02:00
2018-04-01 07:07:32 +02:00
2018-04-30 17:41:53 +02:00
2018-04-22 00:28:35 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 04:11:42 +02:00
2018-04-20 11:22:41 +02:00
2018-04-26 15:13:38 +02:00
2018-04-15 04:12:33 +02:00
2018-05-07 11:00:03 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 04:11:42 +02:00
2018-04-26 16:23:39 +02:00
2018-04-20 11:22:41 +02:00
2018-04-24 17:42:41 +02:00
2018-04-15 00:29:26 +02:00
2018-05-04 18:07:31 +02:00
2018-04-23 17:14:27 +02:00
2018-05-09 15:38:58 +02:00
2018-04-24 17:42:41 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-30 10:58:20 +02:00
2018-04-20 11:22:41 +02:00
2018-04-30 10:58:20 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-18 15:59:15 +02:00
2018-04-18 15:59:15 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-05-07 10:58:54 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-20 11:22:41 +02:00
2018-04-30 15:46:18 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-04-18 15:59:15 +02:00
2018-04-20 11:22:41 +02:00
2018-04-22 00:28:35 +02:00
2018-04-22 00:28:35 +02:00
2018-03-19 21:21:52 +01:00
2018-04-20 11:22:41 +02:00
2018-04-22 04:11:42 +02:00
2018-04-26 15:13:38 +02:00
2018-04-22 04:11:42 +02:00