Hi,
You must have been mistaken, but I'm speaking of ".create()" of "project.task.work"... It writes in project_timesheet/project_timesheet.py:112 as of revision tagged 6.1.1
timeline_id = obj_timesheet.create(cr, uid, vals=vals_line, context=context)
Which writes the line with id=2 in the SQL 'hr_analytic_timesheet' table:
lp_hrtimesheet=# select * from hr_analytic_timesheet; id | create_uid | create_date | write_date | write_uid | line_id | partner_id | sheet_id ----+------------+----------------------------+----------------------------+-----------+---------+------------+---------- 2 | 1 | 2012-03-13 10:08:03.123667 | 2012-03-13 10:08:03.123667 | 1 | 2 | | 1 | 1 | 2012-03-13 10:06:59.523923 | 2012-03-13 10:08:03.123667 | 1 | 1 | | 1
You can observe that sheet_id is not pre-calculated as a storage for function field "sheet_id".
Thus, at ".search()" time, when displaying the "My Timesheet" form, it cannot be displayed as expected.
Please consult my video to see a reproduction of the bug from scratch.
Hi,
You must have been mistaken, but I'm speaking of ".create()" of "project. task.work" ... It writes in project_ timesheet/ project_ timesheet. py:112 as of revision tagged 6.1.1
timeline_id = obj_timesheet. create( cr, uid, vals=vals_line, context=context)
Which writes the line with id=2 in the SQL 'hr_analytic_ timesheet' table:
lp_hrtimesheet=# select * from hr_analytic_ timesheet; ------- ---+--- ------- ------- ------- ----+-- ------- ------- ------- -----+- ------- ---+--- ------+ ------- -----+- ------- --
id | create_uid | create_date | write_date | write_uid | line_id | partner_id | sheet_id
----+--
2 | 1 | 2012-03-13 10:08:03.123667 | 2012-03-13 10:08:03.123667 | 1 | 2 | |
1 | 1 | 2012-03-13 10:06:59.523923 | 2012-03-13 10:08:03.123667 | 1 | 1 | | 1
You can observe that sheet_id is not pre-calculated as a storage for function field "sheet_id".
Thus, at ".search()" time, when displaying the "My Timesheet" form, it cannot be displayed as expected.
Please consult my video to see a reproduction of the bug from scratch.