So i want to create when stage is set to "Ready to Process" that the following happens:
there is a new line added to the timesheet app i have the following code but keep getting an error:
timesheet = env['account.analytic.line'].create({
'name' : 'dit is een test',
'project_id' : x_studio_project,
'task_id' : x_studio_task,
'data' : x_studio_datum_startdate,
'x_studio_char_field_776_1hg0t17l3' : x_studio_starttime,
'x_studio_char_field_3ou_1hg0t3rg2' : x_studio_stoptime,
})
get the following error:
psycopg2.ProgrammingError: can't adapt type 'project.task'