Hello
I'm using Odoo 19 with Studio and need help with an automation issue.
**Goal:**
Update the `date_deadline` field in all tasks when the `date_start` field is modified in the parent project.
Problem: The code executes without errors, but the task deadlines are not updated. Any ideas what could be wrong? Thanks!
for task in env['project.task'].search([('project_id', '=', record.id)]):
task.sudo().write({'date_deadline': "2026-09-01"})
Try with this values:
2026-09-01 00:00:00
Please try to proceed without sudo in write.. it might be avoid something.
I’ve tried, but the field still hasn’t been updated